28 references to AsSourceGenerator
IdeCoreBenchmarks (1)
IncrementalSourceGeneratorBenchmarks.cs (1)
135})).AsSourceGenerator();
Microsoft.Analyzers.Extra.Tests (1)
Resources\RoslynTestUtils.cs (1)
223CSharpGeneratorDriver cgd = CSharpGeneratorDriver.Create(new[] { generator.AsSourceGenerator() }, parseOptions: options);
Microsoft.Analyzers.Local.Tests (1)
Resources\RoslynTestUtils.cs (1)
223CSharpGeneratorDriver cgd = CSharpGeneratorDriver.Create(new[] { generator.AsSourceGenerator() }, parseOptions: options);
Microsoft.AspNetCore.Http.Extensions.Tests (9)
RequestDelegateGenerator\CompileTimeCreationTests.cs (8)
60var generator = new RequestDelegateGenerator.RequestDelegateGenerator().AsSourceGenerator(); 86var generator = new RequestDelegateGenerator.RequestDelegateGenerator().AsSourceGenerator(); 168var generator = new RequestDelegateGenerator.RequestDelegateGenerator().AsSourceGenerator(); 235var generator = new RequestDelegateGenerator.RequestDelegateGenerator().AsSourceGenerator(); 289var generator = new RequestDelegateGenerator.RequestDelegateGenerator().AsSourceGenerator(); 336var generator = new RequestDelegateGenerator.RequestDelegateGenerator().AsSourceGenerator(); 672var generator = new RequestDelegateGenerator.RequestDelegateGenerator().AsSourceGenerator(); 729var generator = new RequestDelegateGenerator.RequestDelegateGenerator().AsSourceGenerator();
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
57var generator = new RequestDelegateGenerator.RequestDelegateGenerator().AsSourceGenerator();
Microsoft.AspNetCore.Http.Microbenchmarks (2)
RequestDelegateGeneratorBenchmarks.cs (1)
35var generator = new RequestDelegateGenerator.RequestDelegateGenerator().AsSourceGenerator();
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
57var generator = new RequestDelegateGenerator.RequestDelegateGenerator().AsSourceGenerator();
Microsoft.CodeAnalysis.CSharp (1)
SourceGeneration\CSharpGeneratorDriver.cs (1)
51=> Create(incrementalGenerators.Select(GeneratorExtensions.AsSourceGenerator), additionalTexts: null);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
9446generators: new[] { new DoNothingGenerator().AsSourceGenerator() });
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
SourceGeneration\GeneratorDriverTests.cs (3)
4251var sourceGenerator = incrementalGenerator.AsSourceGenerator(); 4272var sourceGenerator = generator.AsSourceGenerator(); 4283var sourceGenerator = generator.AsSourceGenerator();
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (2)
CommandLineTests.vb (2)
8961generators:={New DoNothingGenerator().AsSourceGenerator()}) 10716VerifyOutput(dir, src, includeCurrentAssemblyAsAnalyzerReference:=False, generators:={generator.AsSourceGenerator()})
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (5)
SourceGeneration\GeneratorDriverTests.vb (5)
314End Sub).AsSourceGenerator() 346End Sub).AsSourceGenerator() 436End Sub).AsSourceGenerator() 467End Sub).AsSourceGenerator() 556End Sub).AsSourceGenerator()
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
TestGeneratorReference.cs (1)
39: this(generator.AsSourceGenerator(), analyzerFilePath)
System.Windows.Forms.PrivateSourceGenerators.Tests (1)
EnumValidationTests.cs (1)
305ISourceGenerator generator = new EnumValidationGenerator().AsSourceGenerator();