1 instantiation of SimpleDiagnostic
Microsoft.CodeAnalysis.CSharp.Features (1)
FileLevelDirectiveHelpers.cs (1)
612
Builder.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)
59
foreach (
var
simpleDiagnostic in diagnosticsBuilder)
FileLevelDirectiveHelpers.cs (4)
601
public ImmutableArray<
SimpleDiagnostic
>.Builder? Builder { get; private init; }
604
public static DiagnosticBag Collect(out ImmutableArray<
SimpleDiagnostic
>.Builder builder) => new() { Builder = builder = ImmutableArray.CreateBuilder<
SimpleDiagnostic
>() };
612
Builder.Add(new SimpleDiagnostic { Location = new
SimpleDiagnostic
.Position() { Path = sourceFile.Path, TextSpan = textSpan, Span = sourceFile.GetFileLinePositionSpan(textSpan).Span }, Message = message });