13 references to Create
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
GeneratorDriverCacheTests.cs (1)
101
private static GeneratorDriver[] GetDrivers(int count) => Enumerable.Range(0, count).Select(i => CSharpGeneratorDriver.
Create
(Array.Empty<ISourceGenerator>())).ToArray();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
SourceGeneration\GeneratorDriverTests.cs (5)
3939
GeneratorDriver driver = CSharpGeneratorDriver.
Create
(new ISourceGenerator[] { generator });
3982
GeneratorDriver driver = CSharpGeneratorDriver.
Create
(new ISourceGenerator[] { generator });
4310
GeneratorDriver driver = CSharpGeneratorDriver.
Create
(generator1, generator2);
4379
GeneratorDriver driver = CSharpGeneratorDriver.
Create
(generator1, generator2);
4407
GeneratorDriver driver = CSharpGeneratorDriver.
Create
(generator1);
SourceGeneration\SyntaxAwareGeneratorTests.cs (1)
2096
GeneratorDriver driver = CSharpGeneratorDriver.
Create
(new[] { testGenerator, testGenerator2 });
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
370
_ = CSharpGeneratorDriver.
Create
(new Generator(receiver)).RunGenerators(comp!);
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
370
_ = CSharpGeneratorDriver.
Create
(new Generator(receiver)).RunGenerators(comp!);
Microsoft.Gen.Logging.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
370
_ = CSharpGeneratorDriver.
Create
(new Generator(receiver)).RunGenerators(comp!);
Microsoft.Gen.Metrics.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
370
_ = CSharpGeneratorDriver.
Create
(new Generator(receiver)).RunGenerators(comp!);
Microsoft.Gen.MetricsReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
370
_ = CSharpGeneratorDriver.
Create
(new Generator(receiver)).RunGenerators(comp!);
System.Windows.Forms.PrivateSourceGenerators.Tests (1)
EnumValidationTests.cs (1)
307
CSharpGeneratorDriver driver = CSharpGeneratorDriver.
Create
(generator);