1 write to Diagnostics
Microsoft.CodeAnalysis (1)
SourceGeneration\RunResults.cs (1)
95this.Diagnostics = diagnostics;
57 references to Diagnostics
Microsoft.Analyzers.Extra.Tests (2)
Resources\RoslynTestUtils.cs (2)
197return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources); 228return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources);
Microsoft.Analyzers.Local.Tests (2)
Resources\RoslynTestUtils.cs (2)
197return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources); 228return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources);
Microsoft.AspNetCore.Http.Extensions.Tests (9)
RequestDelegateGenerator\CompileTimeCreationTests.AsParameters.cs (3)
32var diagnostic = Assert.Single(result.Diagnostics); 83var diagnostic = Assert.Single(result.Diagnostics); 102var diagnostic = Assert.Single(result.Diagnostics);
RequestDelegateGenerator\CompileTimeCreationTests.cs (5)
200var diagnostic = Assert.Single(result.Diagnostics); 249Assert.All(result.Diagnostics, diagnostic => 303Assert.All(result.Diagnostics, diagnostic => 349Assert.All(result.Diagnostics, diagnostic => 756Assert.All(result.Diagnostics, diagnostic =>
RequestDelegateGenerator\RequestDelegateCreationTests.KeyServices.cs (1)
46Assert.Contains(result.Value.Diagnostics, diagnostic => diagnostic.Id == DiagnosticDescriptors.KeyedAndNotKeyedServiceAttributesNotSupported.Id);
Microsoft.CodeAnalysis (4)
SourceGeneration\RunResults.cs (4)
43/// This is equivalent to the union of all <see cref="GeneratorRunResult.Diagnostics"/> in <see cref="Results"/>. 51ImmutableInterlocked.InterlockedInitialize(ref _lazyDiagnostics, Results.Where(r => !r.Diagnostics.IsDefaultOrEmpty).SelectMany(r => r.Diagnostics).ToImmutableArray()); 134/// When this property has a value, <see cref="GeneratedSources"/> property is guaranteed to be empty, and the <see cref="Diagnostics"/>
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (23)
SourceGeneration\GeneratorDriverTests.cs (16)
567Assert.True(result.Diagnostics.IsDefault); 600Assert.Empty(result.Diagnostics); 634Assert.Empty(result1.Diagnostics); 640Assert.Empty(result2.Diagnostics); 645Assert.Empty(result3.Diagnostics); 686Assert.Equal(2, result1.Diagnostics.Length); 688Assert.Equal(results.Diagnostics[0], result1.Diagnostics[0]); 689Assert.Equal(results.Diagnostics[1], result1.Diagnostics[1]); 692Assert.Single(result2.Diagnostics); 694Assert.Equal(results.Diagnostics[2], result2.Diagnostics[0]); 1075Assert.Empty(result.Diagnostics); 1108Assert.Empty(result1.Diagnostics); 1114Assert.Empty(result2.Diagnostics); 1119Assert.Empty(result3.Diagnostics); 3100Assert.Empty(result.Results[0].Diagnostics); 3554Assert.Empty(result.Diagnostics);
SourceGeneration\SyntaxAwareGeneratorTests.cs (7)
388Assert.Single(results.Results[0].Diagnostics); 430Assert.Single(results.Results[0].Diagnostics); 521Assert.Single(results.Results[0].Diagnostics); 525Assert.Empty(results.Results[1].Diagnostics); 1868Assert.Single(results.Results[0].Diagnostics); 1909Assert.Single(results.Results[0].Diagnostics); 1955Assert.Single(results.Results[0].Diagnostics);
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (2)
877if (!result.Diagnostics.IsDefaultOrEmpty) 879builder.AddRange(result.Diagnostics);
Microsoft.Gen.ComplianceReports.Unit.Tests (3)
test\Generators\Shared\RoslynTestUtils.cs (3)
238return (r.Results[0].Diagnostics, r.Results[0].GeneratedSources); 282return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources); 328return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources);
Microsoft.Gen.ContextualOptions.Unit.Tests (3)
test\Generators\Shared\RoslynTestUtils.cs (3)
238return (r.Results[0].Diagnostics, r.Results[0].GeneratedSources); 282return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources); 328return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources);
Microsoft.Gen.Logging.Unit.Tests (3)
test\Generators\Shared\RoslynTestUtils.cs (3)
238return (r.Results[0].Diagnostics, r.Results[0].GeneratedSources); 282return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources); 328return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources);
Microsoft.Gen.Metrics.Unit.Tests (3)
test\Generators\Shared\RoslynTestUtils.cs (3)
238return (r.Results[0].Diagnostics, r.Results[0].GeneratedSources); 282return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources); 328return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources);
Microsoft.Gen.MetricsReports.Unit.Tests (3)
test\Generators\Shared\RoslynTestUtils.cs (3)
238return (r.Results[0].Diagnostics, r.Results[0].GeneratedSources); 282return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources); 328return (Sort(r.Results[0].Diagnostics), r.Results[0].GeneratedSources);