2 writes to Builder
Microsoft.CodeAnalysis.CSharp.Features (2)
FileLevelDirectiveHelpers.cs (2)
604
public static DiagnosticBag Collect(out ImmutableArray<SimpleDiagnostic>.Builder builder) => new() {
Builder
= builder = ImmutableArray.CreateBuilder<SimpleDiagnostic>() };
605
public static DiagnosticBag Ignore() => new() { IgnoreDiagnostics = true,
Builder
= null };
2 references to Builder
Microsoft.CodeAnalysis.CSharp.Features (2)
FileLevelDirectiveHelpers.cs (2)
609
if (
Builder
!= null)
612
Builder
.Add(new SimpleDiagnostic { Location = new SimpleDiagnostic.Position() { Path = sourceFile.Path, TextSpan = textSpan, Span = sourceFile.GetFileLinePositionSpan(textSpan).Span }, Message = message });