1 instantiation of GeneratorRunResult
Microsoft.CodeAnalysis (1)
SourceGeneration\GeneratorDriver.cs (1)
177=> new GeneratorRunResult(generator,
158 references to GeneratorRunResult
Microsoft.AspNetCore.Http.Extensions.Tests (28)
RequestDelegateGenerator\CompileTimeCreationTests.AsParameters.cs (6)
31var result = Assert.IsType<GeneratorRunResult>(generatorRunResult); 82var result = Assert.IsType<GeneratorRunResult>(generatorRunResult); 101var result = Assert.IsType<GeneratorRunResult>(generatorRunResult);
RequestDelegateGenerator\CompileTimeCreationTests.cs (16)
27var results = Assert.IsType<GeneratorRunResult>(generatorRunResult); 199var result = Assert.IsType<GeneratorRunResult>(generatorRunResult); 247var result = Assert.IsType<GeneratorRunResult>(Assert.Single(generatorRunResult.Results)); 301var result = Assert.IsType<GeneratorRunResult>(Assert.Single(generatorRunResult.Results)); 348var result = Assert.IsType<GeneratorRunResult>(Assert.Single(generatorRunResult.Results)); 684var result = Assert.IsType<GeneratorRunResult>(Assert.Single(generatorRunResult.Results)); 754var result = Assert.IsType<GeneratorRunResult>(generatorRunResult); 774var results = Assert.IsType<GeneratorRunResult>(generatorRunResult);
RequestDelegateGenerator\CompileTimeIncrementalityTests.cs (1)
85private static IEnumerable<(object Value, IncrementalStepRunReason Reason)> GetRunStepOutputs(GeneratorRunResult? result)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (5)
42internal async Task<(GeneratorRunResult?, Compilation)> RunGeneratorAsync(string sources, params string[] updatedSources) 81internal static RequestDelegateGenerator.StaticRouteHandlerModel.Endpoint GetStaticEndpoint(GeneratorRunResult result, string stepName) => 84internal static RequestDelegateGenerator.StaticRouteHandlerModel.Endpoint[] GetStaticEndpoints(GeneratorRunResult result, string stepName) 98internal static void VerifyStaticEndpointModel(GeneratorRunResult? result, Action<RequestDelegateGenerator.StaticRouteHandlerModel.Endpoint> runAssertions) 106internal static void VerifyStaticEndpointModels(GeneratorRunResult? result, Action<RequestDelegateGenerator.StaticRouteHandlerModel.Endpoint[]> runAssertions)
Microsoft.AspNetCore.Http.Microbenchmarks (5)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (5)
42internal async Task<(GeneratorRunResult?, Compilation)> RunGeneratorAsync(string sources, params string[] updatedSources) 81internal static RequestDelegateGenerator.StaticRouteHandlerModel.Endpoint GetStaticEndpoint(GeneratorRunResult result, string stepName) => 84internal static RequestDelegateGenerator.StaticRouteHandlerModel.Endpoint[] GetStaticEndpoints(GeneratorRunResult result, string stepName) 98internal static void VerifyStaticEndpointModel(GeneratorRunResult? result, Action<RequestDelegateGenerator.StaticRouteHandlerModel.Endpoint> runAssertions) 106internal static void VerifyStaticEndpointModels(GeneratorRunResult? result, Action<RequestDelegateGenerator.StaticRouteHandlerModel.Endpoint[]> runAssertions)
Microsoft.CodeAnalysis (5)
SourceGeneration\IncrementalContexts.cs (1)
231/// here are made available via the <see cref="GeneratorRunResult.HostOutputs"/> collection, and it is up the host to
SourceGeneration\RunResults.cs (4)
23internal GeneratorDriverRunResult(ImmutableArray<GeneratorRunResult> results, TimeSpan elapsedTime) 32public ImmutableArray<GeneratorRunResult> Results { get; } 43/// This is equivalent to the union of all <see cref="GeneratorRunResult.Diagnostics"/> in <see cref="Results"/>. 61/// This is equivalent to the union of all <see cref="GeneratedSourceResult.SyntaxTree"/>s in each <see cref="GeneratorRunResult.GeneratedSources"/> in each <see cref="Results"/>
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
EndToEndTests.cs (1)
831var runResult = driver.GetRunResult().Results[0];
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (115)
SourceGeneration\GeneratorDriverTests.cs (26)
564var result = Assert.Single(results.Results); 597var result = results.Results.Single(); 629var result1 = results.Results[0]; 630var result2 = results.Results[1]; 631var result3 = results.Results[2]; 682var result1 = results.Results[0]; 683var result2 = results.Results[1]; 1073var result = results.Results[0]; 1103var result1 = results.Results[0]; 1104var result2 = results.Results[1]; 1105var result3 = results.Results[2]; 1693var runResult = driver.GetRunResult().Results[0]; 1742var runResult = driver.GetRunResult().Results[0]; 2002var runResult = driver.GetRunResult().Results[0]; 2401var runResult = driver.GetRunResult().Results[0]; 2501GeneratorRunResult runResult = driver.GetRunResult().Results[0]; 2635var runResult = driver.GetRunResult().Results[0]; 2713var runResult = driver.GetRunResult().Results[0]; 2903var runResult = driver.GetRunResult().Results[0]; 3161var runResult = driver.GetRunResult().Results[0]; 3552var result = Assert.Single(runResult.Results); 4525var result = Assert.Single(runResult.Results); 4545var result = Assert.Single(runResult.Results); 4560var result = Assert.Single(runResult.Results); 4580var result = Assert.Single(runResult.Results); 4633var result = Assert.Single(runResult.Results);
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.cs (43)
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]; 1426var runResult = driver.GetRunResult().Results[0]; 1473var runResult = driver.GetRunResult().Results[0]; 1520var runResult = driver.GetRunResult().Results[0]; 1563var runResult = driver.GetRunResult().Results[0]; 1611var runResult = driver.GetRunResult().Results[0]; 1664var runResult = driver.GetRunResult().Results[0]; 1723var runResult = driver.GetRunResult().Results[0]; 1775var runResult = driver.GetRunResult().Results[0];
SourceGeneration\GeneratorDriverTests_Attributes_SimpleName.cs (46)
51var runResult = driver.GetRunResult().Results[0]; 83var runResult = driver.GetRunResult().Results[0]; 109var runResult = driver.GetRunResult().Results[0]; 134var runResult = driver.GetRunResult().Results[0]; 159var runResult = driver.GetRunResult().Results[0]; 187var runResult = driver.GetRunResult().Results[0]; 219var runResult = driver.GetRunResult().Results[0]; 251var runResult = driver.GetRunResult().Results[0]; 285var runResult = driver.GetRunResult().Results[0]; 318var runResult = driver.GetRunResult().Results[0]; 344var runResult = driver.GetRunResult().Results[0]; 370var runResult = driver.GetRunResult().Results[0]; 396var runResult = driver.GetRunResult().Results[0]; 429var runResult = driver.GetRunResult().Results[0]; 457var runResult = driver.GetRunResult().Results[0]; 485var runResult = driver.GetRunResult().Results[0]; 512var runResult = driver.GetRunResult().Results[0]; 543var runResult = driver.GetRunResult().Results[0]; 576var runResult = driver.GetRunResult().Results[0]; 608var runResult = driver.GetRunResult().Results[0]; 640var runResult = driver.GetRunResult().Results[0]; 668var runResult = driver.GetRunResult().Results[0]; 696var runResult = driver.GetRunResult().Results[0]; 724var runResult = driver.GetRunResult().Results[0]; 751var runResult = driver.GetRunResult().Results[0]; 778var runResult = driver.GetRunResult().Results[0]; 807var runResult = driver.GetRunResult().Results[0]; 838var runResult = driver.GetRunResult().Results[0]; 868var runResult = driver.GetRunResult().Results[0]; 897var runResult = driver.GetRunResult().Results[0]; 925var runResult = driver.GetRunResult().Results[0]; 953var runResult = driver.GetRunResult().Results[0]; 982var runResult = driver.GetRunResult().Results[0]; 1014var runResult = driver.GetRunResult().Results[0]; 1054var runResult = driver.GetRunResult().Results[0]; 1100var runResult = driver.GetRunResult().Results[0]; 1153var runResult = driver.GetRunResult().Results[0]; 1204var runResult = driver.GetRunResult().Results[0]; 1259var runResult = driver.GetRunResult().Results[0]; 1312var runResult = driver.GetRunResult().Results[0]; 1370var runResult = driver.GetRunResult().Results[0]; 1418var runResult = driver.GetRunResult().Results[0]; 1463var runResult = driver.GetRunResult().Results[0]; 1514var runResult = driver.GetRunResult().Results[0]; 1565var runResult = driver.GetRunResult().Results[0]; 1626var runResult = driver.GetRunResult().Results[0];
Microsoft.CodeAnalysis.ExternalAccess.RazorCompiler (1)
GeneratorExtensions.cs (1)
36public static ImmutableArray<(string Key, string Value)> GetHostOutputs(this GeneratorRunResult runResult) => runResult.HostOutputs.ToImmutableArray().SelectAsArray(a => (a.Key, a.Value.ToString() ?? ""));
Microsoft.CodeAnalysis.Workspaces (3)
SourceGeneratorTelemetry\SourceGeneratorTelemetryCollectorWorkspaceService.cs (1)
58foreach (var generatorResult in driverRunResult.Results)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
875foreach (var result in driverRunResult.Results)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (1)
295foreach (var generatorResult in runResult.Results)