29 references to RunGenerators
Microsoft.Analyzers.Extra.Tests (2)
Resources\RoslynTestUtils.cs (2)
194var gd = cgd.RunGenerators(comp!, cancellationToken); 225var gd = cgd.RunGenerators(comp!, cancellationToken);
Microsoft.Analyzers.Local.Tests (2)
Resources\RoslynTestUtils.cs (2)
194var gd = cgd.RunGenerators(comp!, cancellationToken); 225var gd = cgd.RunGenerators(comp!, cancellationToken);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
SourceGeneration\GeneratorDriverTests.cs (1)
2473Assert.Throws<OperationCanceledException>(() => driver = driver.RunGenerators(compilation, cancellationToken: cts.Token));
SourceGeneration\SyntaxAwareGeneratorTests.cs (3)
1996Assert.Throws<OperationCanceledException>(() => driver = driver.RunGenerators(compilation, cancellationToken: cts.Token)); 2025Assert.Throws<OperationCanceledException>(() => driver = driver.RunGenerators(compilation, cancellationToken: cts.Token)); 2056driver = driver.RunGenerators(compilation, CancellationToken.None);
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (1)
266generatorDriver = generatorDriver.RunGenerators(compilationToRunGeneratorsOn, cancellationToken);
Microsoft.Gen.ComplianceReports.Unit.Tests (4)
test\Generators\Shared\RoslynTestUtils.cs (4)
235GeneratorDriver gd = cgd.RunGenerators(compilation, cancellationToken); 279var gd = cgd.RunGenerators(comp!, cancellationToken); 324GeneratorDriver gd = cgd.RunGenerators(comp!, cancellationToken); 370_ = CSharpGeneratorDriver.Create(new Generator(receiver)).RunGenerators(comp!);
Microsoft.Gen.ContextualOptions.Unit.Tests (4)
test\Generators\Shared\RoslynTestUtils.cs (4)
235GeneratorDriver gd = cgd.RunGenerators(compilation, cancellationToken); 279var gd = cgd.RunGenerators(comp!, cancellationToken); 324GeneratorDriver gd = cgd.RunGenerators(comp!, cancellationToken); 370_ = CSharpGeneratorDriver.Create(new Generator(receiver)).RunGenerators(comp!);
Microsoft.Gen.Logging.Unit.Tests (4)
test\Generators\Shared\RoslynTestUtils.cs (4)
235GeneratorDriver gd = cgd.RunGenerators(compilation, cancellationToken); 279var gd = cgd.RunGenerators(comp!, cancellationToken); 324GeneratorDriver gd = cgd.RunGenerators(comp!, cancellationToken); 370_ = CSharpGeneratorDriver.Create(new Generator(receiver)).RunGenerators(comp!);
Microsoft.Gen.Metrics.Unit.Tests (4)
test\Generators\Shared\RoslynTestUtils.cs (4)
235GeneratorDriver gd = cgd.RunGenerators(compilation, cancellationToken); 279var gd = cgd.RunGenerators(comp!, cancellationToken); 324GeneratorDriver gd = cgd.RunGenerators(comp!, cancellationToken); 370_ = CSharpGeneratorDriver.Create(new Generator(receiver)).RunGenerators(comp!);
Microsoft.Gen.MetricsReports.Unit.Tests (4)
test\Generators\Shared\RoslynTestUtils.cs (4)
235GeneratorDriver gd = cgd.RunGenerators(compilation, cancellationToken); 279var gd = cgd.RunGenerators(comp!, cancellationToken); 324GeneratorDriver gd = cgd.RunGenerators(comp!, cancellationToken); 370_ = CSharpGeneratorDriver.Create(new Generator(receiver)).RunGenerators(comp!);