1 instantiation of SimpleDiagnostic
Microsoft.CodeAnalysis.CSharp.Features (1)
FileLevelDirectiveHelpers.cs (1)
612Builder.Add(new SimpleDiagnostic { Location = new SimpleDiagnostic.Position() { Path = sourceFile.Path, TextSpan = textSpan, Span = sourceFile.GetFileLinePositionSpan(textSpan).Span }, Message = message });
5 references to SimpleDiagnostic
Microsoft.CodeAnalysis.CSharp.Features (5)
Diagnostics\Analyzers\FileBasedPrograms\FileLevelDirectiveDiagnosticAnalyzer.cs (1)
59foreach (var simpleDiagnostic in diagnosticsBuilder)
FileLevelDirectiveHelpers.cs (4)
601public ImmutableArray<SimpleDiagnostic>.Builder? Builder { get; private init; } 604public static DiagnosticBag Collect(out ImmutableArray<SimpleDiagnostic>.Builder builder) => new() { Builder = builder = ImmutableArray.CreateBuilder<SimpleDiagnostic>() }; 612Builder.Add(new SimpleDiagnostic { Location = new SimpleDiagnostic.Position() { Path = sourceFile.Path, TextSpan = textSpan, Span = sourceFile.GetFileLinePositionSpan(textSpan).Span }, Message = message });