1 instantiation of SimpleDiagnostic
dotnet (1)
FileLevelDirectiveHelpers.cs (1)
612Builder.Add(new SimpleDiagnostic { Location = new SimpleDiagnostic.Position() { Path = sourceFile.Path, TextSpan = textSpan, Span = sourceFile.GetFileLinePositionSpan(textSpan).Span }, Message = message });
7 references to SimpleDiagnostic
dotnet (5)
Commands\Run\Api\RunApiCommand.cs (1)
152public required ImmutableArray<SimpleDiagnostic> Diagnostics { get; init; }
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 });
dotnet.Tests (2)
CommandTests\Project\Convert\DotnetProjectConvertTests.cs (2)
1628bool collectDiagnostics, out ImmutableArray<SimpleDiagnostic>.Builder? actualDiagnostics) 1666private static void VerifyErrors(ImmutableArray<SimpleDiagnostic>.Builder? actual, IEnumerable<(int LineNumber, string Message)>? expected)