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)
31
var
result = Assert.IsType<
GeneratorRunResult
>(generatorRunResult);
82
var
result = Assert.IsType<
GeneratorRunResult
>(generatorRunResult);
101
var
result = Assert.IsType<
GeneratorRunResult
>(generatorRunResult);
RequestDelegateGenerator\CompileTimeCreationTests.cs (16)
27
var
results = Assert.IsType<
GeneratorRunResult
>(generatorRunResult);
199
var
result = Assert.IsType<
GeneratorRunResult
>(generatorRunResult);
247
var
result = Assert.IsType<
GeneratorRunResult
>(Assert.Single(generatorRunResult.Results));
301
var
result = Assert.IsType<
GeneratorRunResult
>(Assert.Single(generatorRunResult.Results));
348
var
result = Assert.IsType<
GeneratorRunResult
>(Assert.Single(generatorRunResult.Results));
684
var
result = Assert.IsType<
GeneratorRunResult
>(Assert.Single(generatorRunResult.Results));
754
var
result = Assert.IsType<
GeneratorRunResult
>(generatorRunResult);
774
var
results = Assert.IsType<
GeneratorRunResult
>(generatorRunResult);
RequestDelegateGenerator\CompileTimeIncrementalityTests.cs (1)
85
private static IEnumerable<(object Value, IncrementalStepRunReason Reason)> GetRunStepOutputs(
GeneratorRunResult
? result)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (5)
42
internal async Task<(
GeneratorRunResult
?, Compilation)> RunGeneratorAsync(string sources, params string[] updatedSources)
81
internal static RequestDelegateGenerator.StaticRouteHandlerModel.Endpoint GetStaticEndpoint(
GeneratorRunResult
result, string stepName) =>
84
internal static RequestDelegateGenerator.StaticRouteHandlerModel.Endpoint[] GetStaticEndpoints(
GeneratorRunResult
result, string stepName)
98
internal static void VerifyStaticEndpointModel(
GeneratorRunResult
? result, Action<RequestDelegateGenerator.StaticRouteHandlerModel.Endpoint> runAssertions)
106
internal static void VerifyStaticEndpointModels(
GeneratorRunResult
? result, Action<RequestDelegateGenerator.StaticRouteHandlerModel.Endpoint[]> runAssertions)
Microsoft.AspNetCore.Http.Microbenchmarks (5)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (5)
42
internal async Task<(
GeneratorRunResult
?, Compilation)> RunGeneratorAsync(string sources, params string[] updatedSources)
81
internal static RequestDelegateGenerator.StaticRouteHandlerModel.Endpoint GetStaticEndpoint(
GeneratorRunResult
result, string stepName) =>
84
internal static RequestDelegateGenerator.StaticRouteHandlerModel.Endpoint[] GetStaticEndpoints(
GeneratorRunResult
result, string stepName)
98
internal static void VerifyStaticEndpointModel(
GeneratorRunResult
? result, Action<RequestDelegateGenerator.StaticRouteHandlerModel.Endpoint> runAssertions)
106
internal 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)
23
internal GeneratorDriverRunResult(ImmutableArray<
GeneratorRunResult
> results, TimeSpan elapsedTime)
32
public 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)
831
var
runResult = driver.GetRunResult().Results[0];
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (115)
SourceGeneration\GeneratorDriverTests.cs (26)
564
var
result = Assert.Single(results.Results);
597
var
result = results.Results.Single();
629
var
result1 = results.Results[0];
630
var
result2 = results.Results[1];
631
var
result3 = results.Results[2];
682
var
result1 = results.Results[0];
683
var
result2 = results.Results[1];
1073
var
result = results.Results[0];
1103
var
result1 = results.Results[0];
1104
var
result2 = results.Results[1];
1105
var
result3 = results.Results[2];
1693
var
runResult = driver.GetRunResult().Results[0];
1742
var
runResult = driver.GetRunResult().Results[0];
2002
var
runResult = driver.GetRunResult().Results[0];
2401
var
runResult = driver.GetRunResult().Results[0];
2501
GeneratorRunResult
runResult = driver.GetRunResult().Results[0];
2635
var
runResult = driver.GetRunResult().Results[0];
2713
var
runResult = driver.GetRunResult().Results[0];
2903
var
runResult = driver.GetRunResult().Results[0];
3161
var
runResult = driver.GetRunResult().Results[0];
3552
var
result = Assert.Single(runResult.Results);
4525
var
result = Assert.Single(runResult.Results);
4545
var
result = Assert.Single(runResult.Results);
4560
var
result = Assert.Single(runResult.Results);
4580
var
result = Assert.Single(runResult.Results);
4633
var
result = Assert.Single(runResult.Results);
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.cs (43)
80
var
runResult = driver.GetRunResult().Results[0];
122
var
runResult = driver.GetRunResult().Results[0];
159
var
runResult = driver.GetRunResult().Results[0];
189
var
runResult = driver.GetRunResult().Results[0];
219
var
runResult = driver.GetRunResult().Results[0];
246
var
runResult = driver.GetRunResult().Results[0];
273
var
runResult = driver.GetRunResult().Results[0];
301
var
runResult = driver.GetRunResult().Results[0];
332
var
runResult = driver.GetRunResult().Results[0];
368
var
runResult = driver.GetRunResult().Results[0];
407
var
runResult = driver.GetRunResult().Results[0];
436
var
runResult = driver.GetRunResult().Results[0];
469
var
runResult = driver.GetRunResult().Results[0];
502
var
runResult = driver.GetRunResult().Results[0];
534
var
runResult = driver.GetRunResult().Results[0];
566
var
runResult = driver.GetRunResult().Results[0];
597
var
runResult = driver.GetRunResult().Results[0];
628
var
runResult = driver.GetRunResult().Results[0];
661
var
runResult = driver.GetRunResult().Results[0];
692
var
runResult = driver.GetRunResult().Results[0];
721
var
runResult = driver.GetRunResult().Results[0];
755
var
runResult = driver.GetRunResult().Results[0];
784
var
runResult = driver.GetRunResult().Results[0];
821
var
runResult = driver.GetRunResult().Results[0];
858
var
runResult = driver.GetRunResult().Results[0];
895
var
runResult = driver.GetRunResult().Results[0];
932
var
runResult = driver.GetRunResult().Results[0];
969
var
runResult = driver.GetRunResult().Results[0];
1005
var
runResult = driver.GetRunResult().Results[0];
1040
var
runResult = driver.GetRunResult().Results[0];
1077
var
runResult = driver.GetRunResult().Results[0];
1115
var
runResult = driver.GetRunResult().Results[0];
1153
var
runResult = driver.GetRunResult().Results[0];
1191
var
runResult = driver.GetRunResult().Results[0];
1229
var
runResult = driver.GetRunResult().Results[0];
1426
var
runResult = driver.GetRunResult().Results[0];
1473
var
runResult = driver.GetRunResult().Results[0];
1520
var
runResult = driver.GetRunResult().Results[0];
1563
var
runResult = driver.GetRunResult().Results[0];
1611
var
runResult = driver.GetRunResult().Results[0];
1664
var
runResult = driver.GetRunResult().Results[0];
1723
var
runResult = driver.GetRunResult().Results[0];
1775
var
runResult = driver.GetRunResult().Results[0];
SourceGeneration\GeneratorDriverTests_Attributes_SimpleName.cs (46)
51
var
runResult = driver.GetRunResult().Results[0];
83
var
runResult = driver.GetRunResult().Results[0];
109
var
runResult = driver.GetRunResult().Results[0];
134
var
runResult = driver.GetRunResult().Results[0];
159
var
runResult = driver.GetRunResult().Results[0];
187
var
runResult = driver.GetRunResult().Results[0];
219
var
runResult = driver.GetRunResult().Results[0];
251
var
runResult = driver.GetRunResult().Results[0];
285
var
runResult = driver.GetRunResult().Results[0];
318
var
runResult = driver.GetRunResult().Results[0];
344
var
runResult = driver.GetRunResult().Results[0];
370
var
runResult = driver.GetRunResult().Results[0];
396
var
runResult = driver.GetRunResult().Results[0];
429
var
runResult = driver.GetRunResult().Results[0];
457
var
runResult = driver.GetRunResult().Results[0];
485
var
runResult = driver.GetRunResult().Results[0];
512
var
runResult = driver.GetRunResult().Results[0];
543
var
runResult = driver.GetRunResult().Results[0];
576
var
runResult = driver.GetRunResult().Results[0];
608
var
runResult = driver.GetRunResult().Results[0];
640
var
runResult = driver.GetRunResult().Results[0];
668
var
runResult = driver.GetRunResult().Results[0];
696
var
runResult = driver.GetRunResult().Results[0];
724
var
runResult = driver.GetRunResult().Results[0];
751
var
runResult = driver.GetRunResult().Results[0];
778
var
runResult = driver.GetRunResult().Results[0];
807
var
runResult = driver.GetRunResult().Results[0];
838
var
runResult = driver.GetRunResult().Results[0];
868
var
runResult = driver.GetRunResult().Results[0];
897
var
runResult = driver.GetRunResult().Results[0];
925
var
runResult = driver.GetRunResult().Results[0];
953
var
runResult = driver.GetRunResult().Results[0];
982
var
runResult = driver.GetRunResult().Results[0];
1014
var
runResult = driver.GetRunResult().Results[0];
1054
var
runResult = driver.GetRunResult().Results[0];
1100
var
runResult = driver.GetRunResult().Results[0];
1153
var
runResult = driver.GetRunResult().Results[0];
1204
var
runResult = driver.GetRunResult().Results[0];
1259
var
runResult = driver.GetRunResult().Results[0];
1312
var
runResult = driver.GetRunResult().Results[0];
1370
var
runResult = driver.GetRunResult().Results[0];
1418
var
runResult = driver.GetRunResult().Results[0];
1463
var
runResult = driver.GetRunResult().Results[0];
1514
var
runResult = driver.GetRunResult().Results[0];
1565
var
runResult = driver.GetRunResult().Results[0];
1626
var
runResult = driver.GetRunResult().Results[0];
Microsoft.CodeAnalysis.ExternalAccess.RazorCompiler (1)
GeneratorExtensions.cs (1)
36
public 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)
58
foreach (
var
generatorResult in driverRunResult.Results)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
875
foreach (
var
result in driverRunResult.Results)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (1)
295
foreach (
var
generatorResult in runResult.Results)