2 types derived from GeneratorDriver
Microsoft.CodeAnalysis.CSharp (1)
SourceGeneration\CSharpGeneratorDriver.cs (1)
18
public sealed class CSharpGeneratorDriver :
GeneratorDriver
Microsoft.CodeAnalysis.VisualBasic (1)
SourceGeneration\VisualBasicGeneratorDriver.vb (1)
16
Inherits
GeneratorDriver
455 references to GeneratorDriver
IdeCoreBenchmarks (1)
IncrementalSourceGeneratorBenchmarks.cs (1)
137
GeneratorDriver
driver = CSharpGeneratorDriver.Create(
Microsoft.Analyzers.Extra.Tests (2)
Resources\RoslynTestUtils.cs (2)
194
var
gd = cgd.RunGenerators(comp!, cancellationToken);
225
var
gd = cgd.RunGenerators(comp!, cancellationToken);
Microsoft.Analyzers.Local.Tests (2)
Resources\RoslynTestUtils.cs (2)
194
var
gd = cgd.RunGenerators(comp!, cancellationToken);
225
var
gd = cgd.RunGenerators(comp!, cancellationToken);
Microsoft.AspNetCore.Http.Extensions.Tests (9)
RequestDelegateGenerator\CompileTimeCreationTests.cs (8)
61
GeneratorDriver
driver = CSharpGeneratorDriver.Create(generators: new[]
87
GeneratorDriver
driver = CSharpGeneratorDriver.Create(generators: new[]
169
GeneratorDriver
driver = CSharpGeneratorDriver.Create(generators: new[]
236
GeneratorDriver
driver = CSharpGeneratorDriver.Create(generators: new[]
290
GeneratorDriver
driver = CSharpGeneratorDriver.Create(generators: new[]
337
GeneratorDriver
driver = CSharpGeneratorDriver.Create(generators: new[]
673
GeneratorDriver
driver = CSharpGeneratorDriver.Create(generators: new[]
730
GeneratorDriver
driver = CSharpGeneratorDriver.Create(generators: new[]
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
58
GeneratorDriver
driver = CSharpGeneratorDriver.Create(generators: new[]
Microsoft.AspNetCore.Http.Microbenchmarks (2)
RequestDelegateGeneratorBenchmarks.cs (1)
19
private
GeneratorDriver
_driver;
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
58
GeneratorDriver
driver = CSharpGeneratorDriver.Create(generators: new[]
Microsoft.CodeAnalysis (27)
CommandLine\CommonCompiler.cs (2)
824
GeneratorDriver
? driver = null;
877
private protected abstract
GeneratorDriver
CreateGeneratorDriver(string baseDirectory, ParseOptions parseOptions, ImmutableArray<ISourceGenerator> generators, AnalyzerConfigOptionsProvider analyzerConfigOptionsProvider, ImmutableArray<AdditionalText> additionalTexts);
SourceGeneration\GeneratorDriver.cs (16)
44
/// Run generators and produce an updated <see cref="
GeneratorDriver
"/> containing the results.
48
public
GeneratorDriver
RunGenerators(Compilation compilation) => RunGenerators(compilation, generatorFilter: null, cancellationToken: default);
51
public
GeneratorDriver
RunGenerators(Compilation compilation, CancellationToken cancellationToken) => RunGenerators(compilation, generatorFilter: null, cancellationToken);
54
/// Run generators and produce an updated <see cref="
GeneratorDriver
"/> containing the results.
60
public
GeneratorDriver
RunGenerators(Compilation compilation, Func<GeneratorFilterContext, bool>? generatorFilter, CancellationToken cancellationToken = default)
66
public
GeneratorDriver
RunGeneratorsAndUpdateCompilation(Compilation compilation, out Compilation outputCompilation, out ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken = default)
85
public
GeneratorDriver
AddGenerators(ImmutableArray<ISourceGenerator> generators)
94
public
GeneratorDriver
ReplaceGenerators(ImmutableArray<ISourceGenerator> generators)
116
public
GeneratorDriver
RemoveGenerators(ImmutableArray<ISourceGenerator> generators)
135
public
GeneratorDriver
AddAdditionalTexts(ImmutableArray<AdditionalText> additionalTexts)
141
public
GeneratorDriver
RemoveAdditionalTexts(ImmutableArray<AdditionalText> additionalTexts)
147
public
GeneratorDriver
ReplaceAdditionalText(AdditionalText oldText, AdditionalText newText)
162
public
GeneratorDriver
ReplaceAdditionalTexts(ImmutableArray<AdditionalText> newTexts) => FromState(_state.With(additionalTexts: newTexts));
164
public
GeneratorDriver
WithUpdatedParseOptions(ParseOptions newOptions) => newOptions is object
168
public
GeneratorDriver
WithUpdatedAnalyzerConfigOptions(AnalyzerConfigOptionsProvider newOptions) => newOptions is object
459
internal abstract
GeneratorDriver
FromState(GeneratorDriverState state);
SourceGeneration\GeneratorDriverCache.cs (6)
17
private readonly (string cacheKey,
GeneratorDriver
driver)[] _cachedDrivers = new (string,
GeneratorDriver
)[maxCacheSize];
23
public
GeneratorDriver
? TryGetDriver(string cacheKey) => AddOrUpdateMostRecentlyUsed(cacheKey, driver: null);
25
public void CacheGenerator(string cacheKey,
GeneratorDriver
driver) => AddOrUpdateMostRecentlyUsed(cacheKey, driver);
37
private
GeneratorDriver
? AddOrUpdateMostRecentlyUsed(string cacheKey,
GeneratorDriver
? driver)
SourceGeneration\GeneratorDriverOptions.cs (1)
11
/// Options passed to a <see cref="
GeneratorDriver
"/> during creation.
SourceGeneration\GeneratorExtensions.cs (1)
47
/// Converts an <see cref="IIncrementalGenerator"/> into an <see cref="ISourceGenerator"/> object that can be used when constructing a <see cref="
GeneratorDriver
"/>
SourceGeneration\Nodes\IIncrementalGeneratorOutputNode.cs (1)
26
/// Can be passed as a bit field when creating a <see cref="
GeneratorDriver
"/> to selectively disable outputs.
Microsoft.CodeAnalysis.CSharp (3)
CommandLine\CSharpCompiler.cs (1)
376
private protected override
GeneratorDriver
CreateGeneratorDriver(string baseDirectory, ParseOptions parseOptions, ImmutableArray<ISourceGenerator> generators, AnalyzerConfigOptionsProvider analyzerConfigOptionsProvider, ImmutableArray<AdditionalText> additionalTexts)
SourceGeneration\CSharpGeneratorDriver.cs (2)
16
/// A <see cref="
GeneratorDriver
"/> implementation for the CSharp language.
73
internal override
GeneratorDriver
FromState(GeneratorDriverState state) => new CSharpGeneratorDriver(state);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (16)
CommandLineTests.cs (11)
13932
var generatorPrefix =
GeneratorDriver
.GetFilePathPrefixForGenerator(dir.Path, generator);
13973
var generatorPrefix =
GeneratorDriver
.GetFilePathPrefixForGenerator(dir.Path, generator);
14012
var generator1Prefix =
GeneratorDriver
.GetFilePathPrefixForGenerator(dir.Path, generator);
14013
var generator2Prefix =
GeneratorDriver
.GetFilePathPrefixForGenerator(dir.Path, generator2);
14098
var generatorPrefix =
GeneratorDriver
.GetFilePathPrefixForGenerator(generatedDir.Path, generator);
14124
var generatorPrefix =
GeneratorDriver
.GetFilePathPrefixForGenerator(generatedDir.Path, generator1);
14159
var generator1Prefix =
GeneratorDriver
.GetFilePathPrefixForGenerator(generatedDir.Path, generator);
14160
var generator2Prefix =
GeneratorDriver
.GetFilePathPrefixForGenerator(generatedDir.Path, generator2);
14200
var generatorPrefix =
GeneratorDriver
.GetFilePathPrefixForGenerator(generatedDir.Path, generator);
14317
var generatorPrefix =
GeneratorDriver
.GetFilePathPrefixForGenerator(generatedDir.Path, generator);
14626
var generatorPrefix =
GeneratorDriver
.GetFilePathPrefixForGenerator(objDir.Path, generator);
GeneratorDriverCacheTests.cs (5)
18
var
driver = driverCache.TryGetDriver("0");
30
var
driver = driverCache.TryGetDriver("0");
44
var
driver = driverCache.TryGetDriver("0");
71
var
driver = driverCache.TryGetDriver("0");
101
private static
GeneratorDriver
[] GetDrivers(int count) => Enumerable.Range(0, count).Select(i => CSharpGeneratorDriver.Create(Array.Empty<ISourceGenerator>())).ToArray();
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
EndToEndTests.cs (1)
825
GeneratorDriver
driver = CSharpGeneratorDriver.Create(
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (249)
SourceGeneration\GeneratorDriverFuzzTests.cs (4)
311
GeneratorDriver
driver1 = CSharpGeneratorDriver.Create(generators, originalInputs);
321
GeneratorDriver
driver2 = CSharpGeneratorDriver.Create(generators, editedInputs);
520
GeneratorDriver
driver1 = CSharpGeneratorDriver.Create(new[] { generator }, originalInputs);
540
GeneratorDriver
driver2 = CSharpGeneratorDriver.Create(new[] { generator }, editedInputs);
SourceGeneration\GeneratorDriverTests.cs (112)
40
GeneratorDriver
driver = CSharpGeneratorDriver.Create(ImmutableArray<ISourceGenerator>.Empty, parseOptions: parseOptions);
63
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
85
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
106
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
134
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator }, parseOptions: parseOptions);
166
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator }, parseOptions: parseOptions);
224
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator }, parseOptions: parseOptions);
260
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
283
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
305
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
327
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
351
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator, generator2 }, parseOptions: parseOptions);
384
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
411
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
438
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
469
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
508
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator.AsSourceGenerator() }, parseOptions: parseOptions);
529
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator, generator2 }, parseOptions: parseOptions);
545
GeneratorDriver
driver = CSharpGeneratorDriver.Create(ImmutableArray<ISourceGenerator>.Empty, parseOptions: TestOptions.Regular);
558
GeneratorDriver
driver = CSharpGeneratorDriver.Create([generator], parseOptions: TestOptions.Regular);
588
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
620
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator, generator2, generator3 }, parseOptions: parseOptions);
673
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator, generator2 }, parseOptions: parseOptions);
720
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator, generator2 }, parseOptions: parseOptions);
760
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator, testGenerator2 }, parseOptions: parseOptions);
761
var
oldDriver = driver;
782
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
808
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator }, parseOptions: parseOptions);
835
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator }, parseOptions: parseOptions, additionalTexts: texts);
863
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator }, parseOptions: parseOptions, optionsProvider: options);
894
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
921
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
949
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator, generator2 }, parseOptions: parseOptions);
978
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
1008
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
1043
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
1065
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions);
1094
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator, generator2, generator3 }, parseOptions: parseOptions);
1137
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions);
1203
GeneratorDriver
driver = CSharpGeneratorDriver.Create(ImmutableArray.Create(gen), parseOptions: parseOptions);
1275
GeneratorDriver
driver = CSharpGeneratorDriver.Create(ImmutableArray.Create(gen), parseOptions: parseOptions);
1399
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator, generator2, generator3 }, parseOptions: parseOptions);
1428
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions);
1450
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions);
1475
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions);
1507
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator.AsSourceGenerator() }, parseOptions: parseOptions);
1547
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions);
1580
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator, generator2 }, parseOptions: parseOptions);
1604
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions);
1625
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions);
1691
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1740
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, additionalTexts: new[] { text1 }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1960
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions);
2000
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, additionalTexts: texts, driverOptions: TestOptions.GeneratorDriverOptions);
2137
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
2157
static void verify(ref
GeneratorDriver
driver, Compilation compilation, string generatedContent)
2196
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
2215
static void verify(ref
GeneratorDriver
driver, Compilation compilation, string[] generatedContent)
2263
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions);
2305
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
2358
static void verify(ref
GeneratorDriver
driver, Compilation compilation, string[] generatedContent)
2399
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
2472
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions);
2495
GeneratorDriver
driver = CSharpGeneratorDriver.Create(
2565
GeneratorDriver
driver = CSharpGeneratorDriver.Create(
2633
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, optionsProvider: optionsProvider, driverOptions: TestOptions.GeneratorDriverOptions);
2711
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, additionalTexts: new[] { additionalText1, additionalText2, additionalText3 }, driverOptions: TestOptions.GeneratorDriverOptions);
2901
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, additionalTexts: new[] { additionalText }, driverOptions: TestOptions.GeneratorDriverOptions);
3091
GeneratorDriver
driver = CSharpGeneratorDriver.Create(
3159
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator.AsSourceGenerator() }, parseOptions: parseOptions, additionalTexts: new[] { new InMemoryAdditionalText("text.txt", "") }, driverOptions: TestOptions.GeneratorDriverOptions);
3206
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator1.AsSourceGenerator(), generator2.AsSourceGenerator() }, parseOptions: parseOptions, additionalTexts: new[] { additionalText }, driverOptions: TestOptions.GeneratorDriverOptions);
3238
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions);
3293
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator.AsSourceGenerator() }, parseOptions: parseOptions, additionalTexts: new[] { new InMemoryAdditionalText("text.txt", "") }, driverOptions: TestOptions.GeneratorDriverOptions);
3319
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator.AsSourceGenerator() },
3359
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator.AsSourceGenerator() },
3395
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
3424
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
3464
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator, generator2 }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
3503
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
3546
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
3574
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
3630
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
3664
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
3693
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
3724
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
3756
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
3789
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
3818
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
3848
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
3880
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
3909
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
3939
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator });
3982
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator });
4022
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions);
4078
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
4094
static void verify(ref
GeneratorDriver
driver, Compilation compilation)
4172
GeneratorDriver
driver = CSharpGeneratorDriver.Create(
4179
void verify(ref
GeneratorDriver
driver, Compilation compilation)
4310
GeneratorDriver
driver = CSharpGeneratorDriver.Create(generator1, generator2);
4356
GeneratorDriver
driver = CSharpGeneratorDriver.Create([generator1, generator2], parseOptions: parseOptions);
4379
GeneratorDriver
driver = CSharpGeneratorDriver.Create(generator1, generator2);
4407
GeneratorDriver
driver = CSharpGeneratorDriver.Create(generator1);
4442
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator1 });
4464
GeneratorDriver
driver = CSharpGeneratorDriver.Create([generator], parseOptions: parseOptions);
4485
GeneratorDriver
driver = CSharpGeneratorDriver.Create([generator1, generator2], parseOptions: parseOptions);
4521
GeneratorDriver
driver = CSharpGeneratorDriver.Create([generator.AsSourceGenerator()], parseOptions: parseOptions);
4538
GeneratorDriver
driver = CSharpGeneratorDriver.Create(
4556
GeneratorDriver
driver = CSharpGeneratorDriver.Create([generator.AsSourceGenerator()], parseOptions: parseOptions);
4576
GeneratorDriver
driver = CSharpGeneratorDriver.Create([generator.AsSourceGenerator()], parseOptions: parseOptions);
4594
GeneratorDriver
driver = CSharpGeneratorDriver.Create([generator1.AsSourceGenerator(), generator2.AsSourceGenerator()], parseOptions: parseOptions);
4612
GeneratorDriver
driver = CSharpGeneratorDriver.Create([generator1.AsSourceGenerator(), generator2.AsSourceGenerator()], parseOptions: parseOptions);
4629
GeneratorDriver
driver = CSharpGeneratorDriver.Create([generator.AsSourceGenerator()], parseOptions: parseOptions);
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.cs (45)
78
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
120
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
157
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
187
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
217
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
244
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
271
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
299
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
330
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
366
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
405
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
434
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
467
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
500
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
532
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
564
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
595
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
626
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
659
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
690
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
719
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
753
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
782
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
819
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
856
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
893
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
930
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
967
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1003
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1038
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1075
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1113
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1151
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1189
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1227
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1265
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { generator }, parseOptions: parseOptions);
1289
static void verify(ref
GeneratorDriver
driver, Compilation compilation, params (string HintName, string SourceText)[] expectedGeneratedSources)
1424
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1471
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1518
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1561
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1609
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1662
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1721
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1773
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
SourceGeneration\GeneratorDriverTests_Attributes_SimpleName.cs (46)
49
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
81
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
107
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
132
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
157
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
185
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
217
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
249
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
283
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
316
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
342
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
368
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
394
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
427
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
455
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
483
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
510
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
541
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
574
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
606
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
638
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
666
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
694
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
722
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
749
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
776
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
805
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
836
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
866
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
895
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
923
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
951
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
980
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1012
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1052
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1098
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1151
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1202
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1257
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1310
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1368
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1416
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1461
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1512
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1563
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1624
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
SourceGeneration\SyntaxAwareGeneratorTests.cs (42)
45
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator }, parseOptions: parseOptions);
71
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator }, parseOptions: parseOptions);
96
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator }, parseOptions: parseOptions);
122
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator }, parseOptions: parseOptions);
148
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator }, parseOptions: parseOptions);
175
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator }, parseOptions: parseOptions);
246
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator }, parseOptions: parseOptions);
285
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator }, parseOptions: parseOptions);
327
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator }, parseOptions: parseOptions);
381
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator }, parseOptions: parseOptions);
423
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator }, parseOptions: parseOptions);
471
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator1, testGenerator2 }, parseOptions: parseOptions);
513
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator, testGenerator2 }, parseOptions: parseOptions);
562
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator }, parseOptions: parseOptions);
593
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator }, parseOptions: parseOptions);
634
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator }, parseOptions: parseOptions);
688
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator }, parseOptions: parseOptions);
746
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator, testGenerator2 }, parseOptions: parseOptions);
804
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator }, parseOptions: parseOptions);
830
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator }, parseOptions: parseOptions);
864
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { new IncrementalGeneratorWrapper(testGenerator) }, parseOptions: parseOptions);
910
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { new IncrementalGeneratorWrapper(testGenerator) }, parseOptions: parseOptions);
956
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { new IncrementalGeneratorWrapper(testGenerator) }, parseOptions: parseOptions);
1023
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { new IncrementalGeneratorWrapper(testGenerator) }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1098
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { new IncrementalGeneratorWrapper(testGenerator) }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1186
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { new IncrementalGeneratorWrapper(testGenerator) }, parseOptions: parseOptions);
1231
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { new IncrementalGeneratorWrapper(testGenerator) }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1314
GeneratorDriver
driver = CSharpGeneratorDriver.Create(
1402
GeneratorDriver
driver = CSharpGeneratorDriver.Create(
1522
GeneratorDriver
driver = CSharpGeneratorDriver.Create(
1584
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { new IncrementalGeneratorWrapper(testGenerator) }, parseOptions: parseOptions);
1641
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { new IncrementalGeneratorWrapper(testGenerator) }, parseOptions: parseOptions);
1694
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { new IncrementalGeneratorWrapper(testGenerator) }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1753
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { new IncrementalGeneratorWrapper(testGenerator) }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1807
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { new IncrementalGeneratorWrapper(testGenerator) }, parseOptions: parseOptions, driverOptions: TestOptions.GeneratorDriverOptions);
1861
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { new IncrementalGeneratorWrapper(testGenerator) }, parseOptions: parseOptions);
1902
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { new IncrementalGeneratorWrapper(testGenerator) }, parseOptions: parseOptions);
1948
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { new IncrementalGeneratorWrapper(testGenerator), new IncrementalGeneratorWrapper(testGenerator2) }, parseOptions: parseOptions);
1995
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions);
2024
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new ISourceGenerator[] { generator }, parseOptions: parseOptions);
2055
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator }, parseOptions: parseOptions);
2096
GeneratorDriver
driver = CSharpGeneratorDriver.Create(new[] { testGenerator, testGenerator2 });
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Workspace\LanguageServices\CSharpCompilationFactoryService.cs (1)
56
GeneratorDriver
ICompilationFactoryService.CreateGeneratorDriver(ParseOptions parseOptions, ImmutableArray<ISourceGenerator> generators, AnalyzerConfigOptionsProvider optionsProvider, ImmutableArray<AdditionalText> additionalTexts, string? generatedFilesBaseDirectory)
Microsoft.CodeAnalysis.VisualBasic (2)
CommandLine\VisualBasicCompiler.vb (1)
300
Private Protected Overrides Function CreateGeneratorDriver(baseDirectory As String, parseOptions As ParseOptions, generators As ImmutableArray(Of ISourceGenerator), analyzerConfigOptionsProvider As AnalyzerConfigOptionsProvider, additionalTexts As ImmutableArray(Of AdditionalText)) As
GeneratorDriver
SourceGeneration\VisualBasicGeneratorDriver.vb (1)
32
Friend Overrides Function FromState(state As GeneratorDriverState) As
GeneratorDriver
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (2)
CommandLineTests.vb (2)
10573
Dim generatorPrefix =
GeneratorDriver
.GetFilePathPrefixForGenerator(baseDirectory:=generatedDir.Path, generator)
10620
Dim generatorPrefix =
GeneratorDriver
.GetFilePathPrefixForGenerator(baseDirectory:=generatedDir.Path, generator)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (100)
SourceGeneration\GeneratorDriverTests.vb (22)
28
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(testGenerator), parseOptions:=parseOptions)
50
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(testGenerator),
66
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(testGenerator), parseOptions:=parseOptions)
94
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(testGenerator), parseOptions:=parseOptions)
117
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(testGenerator), parseOptions:=parseOptions)
133
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(testGenerator), parseOptions:=parseOptions)
149
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(testGenerator), parseOptions:=parseOptions)
163
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(testGenerator), parseOptions:=parseOptions)
316
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(generator), parseOptions:=parseOptions)
348
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(generator), parseOptions:=parseOptions)
377
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(generator), parseOptions:=parseOptions)
408
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(generator), parseOptions:=parseOptions)
438
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(generator), parseOptions:=parseOptions)
469
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(generator), parseOptions:=parseOptions)
498
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(generator), parseOptions:=parseOptions)
528
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(generator), parseOptions:=parseOptions)
558
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(generator), parseOptions:=parseOptions)
587
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(generator), parseOptions:=parseOptions)
600
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(New IncrementalGeneratorWrapper(testGenerator)), parseOptions:=parseOptions)
618
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(testGenerator), parseOptions:=parseOptions)
652
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(generator), parseOptions:=TestOptions.Regular)
679
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(gen), parseOptions:=TestOptions.Regular)
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.vb (31)
84
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
125
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
168
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
196
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
225
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
251
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
282
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
311
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
340
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
369
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
400
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
443
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
484
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
524
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
563
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
602
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
642
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
678
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
715
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
752
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
789
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
826
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
863
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
899
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
946
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
993
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
1036
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
1085
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
1138
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
1196
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
1250
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
SourceGeneration\GeneratorDriverTests_Attributes_SimpleName.vb (47)
55
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
87
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
113
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
138
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
163
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
192
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
224
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
256
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
288
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
319
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
345
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
371
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
397
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
430
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
458
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
486
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
513
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
543
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
574
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
604
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
634
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
662
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
690
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
718
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
745
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
772
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
799
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
826
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
855
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
884
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
911
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
937
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
966
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
994
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
1020
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
1047
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
1079
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
1119
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
1160
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
1200
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
1242
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
1288
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
1325
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
1365
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
1406
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
1448
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
1500
Dim driver As
GeneratorDriver
= VisualBasicGeneratorDriver.Create(ImmutableArray.Create(Of ISourceGenerator)(generator), parseOptions:=parseOptions, driverOptions:=TestOptions.GeneratorDriverOptions)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Workspace\LanguageServices\VisualBasicCompilationFactoryService.vb (1)
68
generatedFilesBaseDirectory As String) As
GeneratorDriver
Implements ICompilationFactoryService.CreateGeneratorDriver
Microsoft.CodeAnalysis.Workspaces (21)
SourceGeneration\IRemoteSourceGenerationService.cs (2)
33
/// cref="
GeneratorDriver
"/> should be included.</param>
44
/// cref="
GeneratorDriver
"/> should be included.</param>
Workspace\Host\CompilationFactory\ICompilationFactoryService.cs (1)
18
GeneratorDriver
CreateGeneratorDriver(ParseOptions parseOptions, ImmutableArray<ISourceGenerator> generators, AnalyzerConfigOptionsProvider optionsProvider, ImmutableArray<AdditionalText> additionalTexts, string? generatedFilesBaseDirectory);
Workspace\Solution\SolutionCompilationState.CompilationTrackerGeneratorInfo.cs (1)
21
GeneratorDriver
? Driver)
Workspace\Solution\SolutionCompilationState.cs (1)
1819
public
GeneratorDriver
? GetGeneratorDriver(Project project)
Workspace\Solution\SolutionCompilationState.ICompilationTracker.cs (1)
17
GeneratorDriver
? GeneratorDriver { get; }
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
93
public
GeneratorDriver
? GeneratorDriver
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (4)
228
private async Task<(Compilation compilationWithGeneratedFiles, TextDocumentStates<SourceGeneratedDocumentState> generatedDocuments,
GeneratorDriver
? generatorDriver)> ComputeNewGeneratorInfoInCurrentProcessAsync(
232
GeneratorDriver
? generatorDriver,
391
static
GeneratorDriver
CreateGeneratorDriver(ProjectState projectState)
406
static void CheckGeneratorDriver(
GeneratorDriver
generatorDriver, ProjectState projectState)
Workspace\Solution\SolutionCompilationState.TranslationAction.cs (3)
13
/// Represents a change that needs to be made to a <see cref="Compilation"/>, <see cref="
GeneratorDriver
"/>, or both
48
public abstract
GeneratorDriver
TransformGeneratorDriver(
GeneratorDriver
generatorDriver);
Workspace\Solution\SolutionCompilationState.TranslationAction_Actions.cs (6)
52
public override
GeneratorDriver
TransformGeneratorDriver(
GeneratorDriver
generatorDriver)
100
public override
GeneratorDriver
TransformGeneratorDriver(
GeneratorDriver
generatorDriver)
129
public override
GeneratorDriver
TransformGeneratorDriver(
GeneratorDriver
generatorDriver)
Workspace\Solution\SolutionCompilationState.WithFrozenSourceGeneratedDocumentsCompilationTracker.cs (1)
43
public
GeneratorDriver
? GeneratorDriver => UnderlyingTracker.GeneratorDriver;
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Host\LanguageServices\TestCSharpCompilationFactoryServiceWithIncrementalGeneratorTracking.cs (1)
58
GeneratorDriver
ICompilationFactoryService.CreateGeneratorDriver(ParseOptions parseOptions, ImmutableArray<ISourceGenerator> generators, AnalyzerConfigOptionsProvider optionsProvider, ImmutableArray<AdditionalText> additionalTexts, string? generatedFilesBaseDirectory)
Microsoft.Gen.ComplianceReports.Unit.Tests (3)
test\Generators\Shared\RoslynTestUtils.cs (3)
235
GeneratorDriver
gd = cgd.RunGenerators(compilation, cancellationToken);
279
var
gd = cgd.RunGenerators(comp!, cancellationToken);
324
GeneratorDriver
gd = cgd.RunGenerators(comp!, cancellationToken);
Microsoft.Gen.ContextualOptions.Unit.Tests (3)
test\Generators\Shared\RoslynTestUtils.cs (3)
235
GeneratorDriver
gd = cgd.RunGenerators(compilation, cancellationToken);
279
var
gd = cgd.RunGenerators(comp!, cancellationToken);
324
GeneratorDriver
gd = cgd.RunGenerators(comp!, cancellationToken);
Microsoft.Gen.Logging.Unit.Tests (3)
test\Generators\Shared\RoslynTestUtils.cs (3)
235
GeneratorDriver
gd = cgd.RunGenerators(compilation, cancellationToken);
279
var
gd = cgd.RunGenerators(comp!, cancellationToken);
324
GeneratorDriver
gd = cgd.RunGenerators(comp!, cancellationToken);
Microsoft.Gen.Metrics.Unit.Tests (3)
test\Generators\Shared\RoslynTestUtils.cs (3)
235
GeneratorDriver
gd = cgd.RunGenerators(compilation, cancellationToken);
279
var
gd = cgd.RunGenerators(comp!, cancellationToken);
324
GeneratorDriver
gd = cgd.RunGenerators(comp!, cancellationToken);
Microsoft.Gen.MetricsReports.Unit.Tests (3)
test\Generators\Shared\RoslynTestUtils.cs (3)
235
GeneratorDriver
gd = cgd.RunGenerators(compilation, cancellationToken);
279
var
gd = cgd.RunGenerators(comp!, cancellationToken);
324
GeneratorDriver
gd = cgd.RunGenerators(comp!, cancellationToken);