1 write to Results
Microsoft.CodeAnalysis (1)
SourceGeneration\RunResults.cs (1)
24this.Results = results;
322 references to Results
Microsoft.CodeAnalysis (4)
SourceGeneration\RunResults.cs (4)
42/// This is equivalent to the union of all <see cref="GeneratorRunResult.Diagnostics"/> in <see cref="Results"/>. 50ImmutableInterlocked.InterlockedInitialize(ref _lazyDiagnostics, Results.SelectMany(r => r.Diagnostics).ToImmutableArray()); 60/// This is equivalent to the union of all <see cref="GeneratedSourceResult.SyntaxTree"/>s in each <see cref="GeneratorRunResult.GeneratedSources"/> in each <see cref="Results"/> 68ImmutableInterlocked.InterlockedInitialize(ref _lazyGeneratedTrees, Results.SelectMany(r => r.GeneratedSources.Select(g => g.SyntaxTree)).ToImmutableArray());
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (213)
SourceGeneration\GeneratorDriverTests.cs (58)
564Assert.Empty(results.Results); 586Assert.Single(results.Results); 589var result = results.Results.Single(); 618Assert.Equal(3, results.Results.Length); 621var result1 = results.Results[0]; 622var result2 = results.Results[1]; 623var result3 = results.Results[2]; 670Assert.Equal(2, results.Results.Length); 674var result1 = results.Results[0]; 675var result2 = results.Results[1]; 1070Assert.Single(results.Results); 1073var result = results.Results[0]; 1100Assert.Equal(3, results.Results.Length); 1103var result1 = results.Results[0]; 1104var result2 = results.Results[1]; 1105var result3 = results.Results[2]; 1444Assert.Single(runResults.Results); 1446Assert.Equal(e, runResults.Results[0].Exception); 1469Assert.Single(runResults.Results); 1471Assert.Equal(e, runResults.Results[0].Exception); 1498Assert.Single(runResults.Results); 1500Assert.Equal(e, runResults.Results[0].Exception); 1531Assert.Equal(2, runResults.Results.Length); 1533Assert.Equal(e, runResults.Results[0].Exception); 1639var runResult = driver.GetRunResult().Results[0]; 1652runResult = driver.GetRunResult().Results[0]; 1688var runResult = driver.GetRunResult().Results[0]; 1726runResult = driver.GetRunResult().Results[0]; 1779runResult = driver.GetRunResult().Results[0]; 1831runResult = driver.GetRunResult().Results[0]; 1948var runResult = driver.GetRunResult().Results[0]; 1977runResult = driver.GetRunResult().Results[0]; 2029runResult = driver.GetRunResult().Results[0]; 2115var runResult = driver.GetRunResult().Results[0]; 2131runResult = driver.GetRunResult().Results[0]; 2148runResult = driver.GetRunResult().Results[0]; 2211GeneratorRunResult runResult = driver.GetRunResult().Results[0]; 2218runResult = driver.GetRunResult().Results[0]; 2231runResult = driver.GetRunResult().Results[0]; 2238runResult = driver.GetRunResult().Results[0]; 2341var runResult = driver.GetRunResult().Results[0]; 2356runResult = driver.GetRunResult().Results[0]; 2378runResult = driver.GetRunResult().Results[0]; 2419var runResult = driver.GetRunResult().Results[0]; 2472runResult = driver.GetRunResult().Results[0]; 2528runResult = driver.GetRunResult().Results[0]; 2609var runResult = driver.GetRunResult().Results[0]; 2647runResult = driver.GetRunResult().Results[0]; 2689runResult = driver.GetRunResult().Results[0]; 2731runResult = driver.GetRunResult().Results[0]; 2795Assert.Single(result.Results); 2796Assert.Empty(result.Results[0].Diagnostics); 2807Assert.DoesNotContain(result.Results[0].GeneratedSources, isTextForKind); 2811Assert.Contains(result.Results[0].GeneratedSources, isTextForKind); 2841var runResult = driver.GetRunResult().Results[0]; 2889Assert.All(runResult.Results, 2891Assert.Equal(2, runResult.Results.Length); 3228var result = Assert.Single(runResult.Results);
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.cs (51)
80var runResult = driver.GetRunResult().Results[0]; 122var runResult = driver.GetRunResult().Results[0]; 159var runResult = driver.GetRunResult().Results[0]; 189var runResult = driver.GetRunResult().Results[0]; 219var runResult = driver.GetRunResult().Results[0]; 246var runResult = driver.GetRunResult().Results[0]; 273var runResult = driver.GetRunResult().Results[0]; 301var runResult = driver.GetRunResult().Results[0]; 332var runResult = driver.GetRunResult().Results[0]; 368var runResult = driver.GetRunResult().Results[0]; 407var runResult = driver.GetRunResult().Results[0]; 436var runResult = driver.GetRunResult().Results[0]; 469var runResult = driver.GetRunResult().Results[0]; 502var runResult = driver.GetRunResult().Results[0]; 534var runResult = driver.GetRunResult().Results[0]; 566var runResult = driver.GetRunResult().Results[0]; 597var runResult = driver.GetRunResult().Results[0]; 628var runResult = driver.GetRunResult().Results[0]; 661var runResult = driver.GetRunResult().Results[0]; 692var runResult = driver.GetRunResult().Results[0]; 721var runResult = driver.GetRunResult().Results[0]; 755var runResult = driver.GetRunResult().Results[0]; 784var runResult = driver.GetRunResult().Results[0]; 821var runResult = driver.GetRunResult().Results[0]; 858var runResult = driver.GetRunResult().Results[0]; 895var runResult = driver.GetRunResult().Results[0]; 932var runResult = driver.GetRunResult().Results[0]; 969var runResult = driver.GetRunResult().Results[0]; 1005var runResult = driver.GetRunResult().Results[0]; 1040var runResult = driver.GetRunResult().Results[0]; 1077var runResult = driver.GetRunResult().Results[0]; 1115var runResult = driver.GetRunResult().Results[0]; 1153var runResult = driver.GetRunResult().Results[0]; 1191var runResult = driver.GetRunResult().Results[0]; 1229var runResult = driver.GetRunResult().Results[0]; 1266var runResult = driver.GetRunResult().Results[0]; 1273runResult = driver.GetRunResult().Results[0]; 1313var runResult = driver.GetRunResult().Results[0]; 1320runResult = driver.GetRunResult().Results[0]; 1360var runResult = driver.GetRunResult().Results[0]; 1366runResult = driver.GetRunResult().Results[0]; 1403var runResult = driver.GetRunResult().Results[0]; 1411runResult = driver.GetRunResult().Results[0]; 1450var runResult = driver.GetRunResult().Results[0]; 1458runResult = driver.GetRunResult().Results[0]; 1502var runResult = driver.GetRunResult().Results[0]; 1510runResult = driver.GetRunResult().Results[0]; 1560var runResult = driver.GetRunResult().Results[0]; 1574runResult = driver.GetRunResult().Results[0]; 1612var runResult = driver.GetRunResult().Results[0]; 1622runResult = driver.GetRunResult().Results[0];
SourceGeneration\GeneratorDriverTests_Attributes_SimpleName.cs (59)
53var runResult = driver.GetRunResult().Results[0]; 85var runResult = driver.GetRunResult().Results[0]; 111var runResult = driver.GetRunResult().Results[0]; 136var runResult = driver.GetRunResult().Results[0]; 161var runResult = driver.GetRunResult().Results[0]; 189var runResult = driver.GetRunResult().Results[0]; 221var runResult = driver.GetRunResult().Results[0]; 253var runResult = driver.GetRunResult().Results[0]; 287var runResult = driver.GetRunResult().Results[0]; 320var runResult = driver.GetRunResult().Results[0]; 346var runResult = driver.GetRunResult().Results[0]; 372var runResult = driver.GetRunResult().Results[0]; 398var runResult = driver.GetRunResult().Results[0]; 431var runResult = driver.GetRunResult().Results[0]; 459var runResult = driver.GetRunResult().Results[0]; 487var runResult = driver.GetRunResult().Results[0]; 514var runResult = driver.GetRunResult().Results[0]; 545var runResult = driver.GetRunResult().Results[0]; 578var runResult = driver.GetRunResult().Results[0]; 610var runResult = driver.GetRunResult().Results[0]; 642var runResult = driver.GetRunResult().Results[0]; 670var runResult = driver.GetRunResult().Results[0]; 698var runResult = driver.GetRunResult().Results[0]; 726var runResult = driver.GetRunResult().Results[0]; 753var runResult = driver.GetRunResult().Results[0]; 780var runResult = driver.GetRunResult().Results[0]; 809var runResult = driver.GetRunResult().Results[0]; 840var runResult = driver.GetRunResult().Results[0]; 870var runResult = driver.GetRunResult().Results[0]; 899var runResult = driver.GetRunResult().Results[0]; 927var runResult = driver.GetRunResult().Results[0]; 955var runResult = driver.GetRunResult().Results[0]; 984var runResult = driver.GetRunResult().Results[0]; 1016var runResult = driver.GetRunResult().Results[0]; 1023runResult = driver.GetRunResult().Results[0]; 1056var runResult = driver.GetRunResult().Results[0]; 1063runResult = driver.GetRunResult().Results[0]; 1100var runResult = driver.GetRunResult().Results[0]; 1107runResult = driver.GetRunResult().Results[0]; 1151var runResult = driver.GetRunResult().Results[0]; 1161runResult = driver.GetRunResult().Results[0]; 1200var runResult = driver.GetRunResult().Results[0]; 1210runResult = driver.GetRunResult().Results[0]; 1253var runResult = driver.GetRunResult().Results[0]; 1264runResult = driver.GetRunResult().Results[0]; 1304var runResult = driver.GetRunResult().Results[0]; 1311runResult = driver.GetRunResult().Results[0]; 1348var runResult = driver.GetRunResult().Results[0]; 1355runResult = driver.GetRunResult().Results[0]; 1395var runResult = driver.GetRunResult().Results[0]; 1402runResult = driver.GetRunResult().Results[0]; 1439var runResult = driver.GetRunResult().Results[0]; 1446runResult = driver.GetRunResult().Results[0]; 1487var runResult = driver.GetRunResult().Results[0]; 1495runResult = driver.GetRunResult().Results[0]; 1535var runResult = driver.GetRunResult().Results[0]; 1544runResult = driver.GetRunResult().Results[0]; 1593var runResult = driver.GetRunResult().Results[0]; 1603runResult = driver.GetRunResult().Results[0];
SourceGeneration\SyntaxAwareGeneratorTests.cs (45)
386Assert.Single(results.Results); 387Assert.Single(results.Results[0].Diagnostics); 389Assert.NotNull(results.Results[0].Exception); 390Assert.Equal("Test Exception", results.Results[0].Exception?.Message); 430Assert.Single(results.Results); 431Assert.Single(results.Results[0].Diagnostics); 433Assert.NotNull(results.Results[0].Exception); 434Assert.Equal("Test Exception", results.Results[0].Exception?.Message); 522Assert.Equal(2, results.Results.Length); 524Assert.Single(results.Results[0].Diagnostics); 525Assert.NotNull(results.Results[0].Exception); 526Assert.Equal("Test Exception", results.Results[0].Exception?.Message); 528Assert.Empty(results.Results[1].Diagnostics); 1041Assert.Collection(results.Results[0].TrackedSteps["Fields"], 1061Assert.Collection(results.Results[0].TrackedSteps["Fields"], 1118Assert.Collection(results.Results[0].TrackedSteps["Fields"], 1140Assert.Collection(results.Results[0].TrackedSteps["Fields"], 1248Assert.Collection(results.Results[0].TrackedSteps["Fields"], 1277Assert.Collection(results.Results[0].TrackedSteps["Fields"], 1419Assert.Collection(results.Results[0].TrackedSteps["Fields"], 1449Assert.Collection(results.Results[0].TrackedSteps["Syntax"], 1456Assert.Collection(results.Results[0].TrackedSteps["Fields"], 1482Assert.Collection(results.Results[0].TrackedSteps["Fields"], 1533Assert.Collection(results.Results[0].TrackedSteps["Fields"], 1548Assert.Collection(results.Results[0].TrackedSteps["Fields"], 1704Assert.Collection(results.Results[0].TrackedSteps["Fields"], 1711Assert.Collection(results.Results[0].TrackedSteps["Output"], 1763Assert.Collection(results.Results[0].TrackedSteps["Fields"], 1770Assert.Collection(results.Results[0].TrackedSteps["Output"], 1817Assert.Collection(results.Results[0].TrackedSteps["Fields"], 1830Assert.Collection(results.Results[0].TrackedSteps["Output"], 1873Assert.Single(results.Results[0].Diagnostics); 1874Assert.NotNull(results.Results[0].Exception); 1875Assert.Equal("Test Exception", results.Results[0].Exception?.Message); 1916Assert.Single(results.Results[0].Diagnostics); 1917Assert.NotNull(results.Results[0].Exception); 1918Assert.Equal("Test Exception", results.Results[0].Exception?.Message); 1964Assert.Single(results.Results[0].Diagnostics); 1965Assert.NotNull(results.Results[0].Exception); 1966Assert.Equal("Test Exception", results.Results[0].Exception?.Message); 1968Assert.Single(results.Results[1].GeneratedSources); 1969Assert.Null(results.Results[1].Exception); 2070Assert.Single(results.Results); 2071Assert.IsType<OperationCanceledException>(results.Results[0].Exception); 2072Assert.Equal("Simulated cancellation from external source", results.Results[0].Exception!.Message);
Microsoft.CodeAnalysis.ExternalAccess.RazorCompiler.UnitTests (1)
HostOutputsTests.cs (1)
42var result = driver.GetRunResult().Results.Single();
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (97)
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.vb (39)
86Dim runResult = driver.GetRunResult().Results(0) 127Dim runResult = driver.GetRunResult().Results(0) 170Dim runResult = driver.GetRunResult().Results(0) 198Dim runResult = driver.GetRunResult().Results(0) 227Dim runResult = driver.GetRunResult().Results(0) 253Dim runResult = driver.GetRunResult().Results(0) 284Dim runResult = driver.GetRunResult().Results(0) 313Dim runResult = driver.GetRunResult().Results(0) 342Dim runResult = driver.GetRunResult().Results(0) 371Dim runResult = driver.GetRunResult().Results(0) 402Dim runResult = driver.GetRunResult().Results(0) 445Dim runResult = driver.GetRunResult().Results(0) 486Dim runResult = driver.GetRunResult().Results(0) 526Dim runResult = driver.GetRunResult().Results(0) 565Dim runResult = driver.GetRunResult().Results(0) 604Dim runResult = driver.GetRunResult().Results(0) 644Dim runResult = driver.GetRunResult().Results(0) 680Dim runResult = driver.GetRunResult().Results(0) 717Dim runResult = driver.GetRunResult().Results(0) 754Dim runResult = driver.GetRunResult().Results(0) 791Dim runResult = driver.GetRunResult().Results(0) 828Dim runResult = driver.GetRunResult().Results(0) 865Dim runResult = driver.GetRunResult().Results(0) 901Dim runResult = driver.GetRunResult().Results(0) 908runResult = driver.GetRunResult().Results(0) 948Dim runResult = driver.GetRunResult().Results(0) 955runResult = driver.GetRunResult().Results(0) 995Dim runResult = driver.GetRunResult().Results(0) 1001runResult = driver.GetRunResult().Results(0) 1038Dim runResult = driver.GetRunResult().Results(0) 1047runResult = driver.GetRunResult().Results(0) 1087Dim runResult = driver.GetRunResult().Results(0) 1095runResult = driver.GetRunResult().Results(0) 1140Dim runResult = driver.GetRunResult().Results(0) 1148runResult = driver.GetRunResult().Results(0) 1198Dim runResult = driver.GetRunResult().Results(0) 1214runResult = driver.GetRunResult().Results(0) 1252Dim runResult = driver.GetRunResult().Results(0) 1264runResult = driver.GetRunResult().Results(0)
SourceGeneration\GeneratorDriverTests_Attributes_SimpleName.vb (58)
57Dim runResult = driver.GetRunResult().Results(0) 89Dim runResult = driver.GetRunResult().Results(0) 115Dim runResult = driver.GetRunResult().Results(0) 140Dim runResult = driver.GetRunResult().Results(0) 165Dim runResult = driver.GetRunResult().Results(0) 194Dim runResult = driver.GetRunResult().Results(0) 226Dim runResult = driver.GetRunResult().Results(0) 258Dim runResult = driver.GetRunResult().Results(0) 290Dim runResult = driver.GetRunResult().Results(0) 321Dim runResult = driver.GetRunResult().Results(0) 347Dim runResult = driver.GetRunResult().Results(0) 373Dim runResult = driver.GetRunResult().Results(0) 399Dim runResult = driver.GetRunResult().Results(0) 432Dim runResult = driver.GetRunResult().Results(0) 460Dim runResult = driver.GetRunResult().Results(0) 488Dim runResult = driver.GetRunResult().Results(0) 515Dim runResult = driver.GetRunResult().Results(0) 545Dim runResult = driver.GetRunResult().Results(0) 576Dim runResult = driver.GetRunResult().Results(0) 606Dim runResult = driver.GetRunResult().Results(0) 636Dim runResult = driver.GetRunResult().Results(0) 664Dim runResult = driver.GetRunResult().Results(0) 692Dim runResult = driver.GetRunResult().Results(0) 720Dim runResult = driver.GetRunResult().Results(0) 747Dim runResult = driver.GetRunResult().Results(0) 774Dim runResult = driver.GetRunResult().Results(0) 801Dim runResult = driver.GetRunResult().Results(0) 828Dim runResult = driver.GetRunResult().Results(0) 857Dim runResult = driver.GetRunResult().Results(0) 886Dim runResult = driver.GetRunResult().Results(0) 913Dim runResult = driver.GetRunResult().Results(0) 939Dim runResult = driver.GetRunResult().Results(0) 968Dim runResult = driver.GetRunResult().Results(0) 996Dim runResult = driver.GetRunResult().Results(0) 1022Dim runResult = driver.GetRunResult().Results(0) 1049Dim runResult = driver.GetRunResult().Results(0) 1081Dim runResult = driver.GetRunResult().Results(0) 1088runResult = driver.GetRunResult().Results(0) 1121Dim runResult = driver.GetRunResult().Results(0) 1128runResult = driver.GetRunResult().Results(0) 1162Dim runResult = driver.GetRunResult().Results(0) 1169runResult = driver.GetRunResult().Results(0) 1202Dim runResult = driver.GetRunResult().Results(0) 1213runResult = driver.GetRunResult().Results(0) 1244Dim runResult = driver.GetRunResult().Results(0) 1255runResult = driver.GetRunResult().Results(0) 1290Dim runResult = driver.GetRunResult().Results(0) 1297runResult = driver.GetRunResult().Results(0) 1327Dim runResult = driver.GetRunResult().Results(0) 1335runResult = driver.GetRunResult().Results(0) 1367Dim runResult = driver.GetRunResult().Results(0) 1373runResult = driver.GetRunResult().Results(0) 1408Dim runResult = driver.GetRunResult().Results(0) 1417runResult = driver.GetRunResult().Results(0) 1450Dim runResult = driver.GetRunResult().Results(0) 1460runResult = driver.GetRunResult().Results(0) 1502Dim runResult = driver.GetRunResult().Results(0) 1513runResult = driver.GetRunResult().Results(0)
Microsoft.CodeAnalysis.Workspaces (4)
SourceGeneratorTelemetry\SourceGeneratorTelemetryCollectorWorkspaceService.cs (1)
56foreach (var generatorResult in driverRunResult.Results)
Workspace\Solution\SolutionState.CompilationTracker.cs (3)
867runResult.Results.Sum(r => IsGeneratorRunResultToIgnore(r) ? 0 : r.GeneratedSources.Length); 875foreach (var generatorResult in runResult.Results) 1077foreach (var result in driverRunResult.Results)
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
SolutionTests\SolutionWithSourceGeneratorTests.cs (3)
181var runResult = generatorDriver!.GetRunResult().Results[0]; 200runResult = generatorDriver.GetRunResult().Results[0]; 224runResult = generatorDriver.GetRunResult().Results[0];