85 references to CompilationProvider
Microsoft.AspNetCore.App.SourceGenerators (1)
PublicTopLevelProgramGenerator.cs (1)
23var internalGeneratedProgramClass = context.CompilationProvider.Select(static (compilation, cancellationToken) =>
Microsoft.AspNetCore.OpenApi.SourceGenerators (3)
XmlCommentGenerator.cs (3)
21var commentsFromTargetAssembly = context.CompilationProvider 26.Combine(context.CompilationProvider) 29.Combine(context.CompilationProvider)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (2)
HubClientProxyGenerator.cs (1)
26var compilationAndMethodDeclaration = context.CompilationProvider.Combine(methodDeclaration);
HubServerProxyGenerator.cs (1)
26var compilationAndMethodDeclaration = context.CompilationProvider.Combine(methodDeclaration);
Microsoft.CodeAnalysis (3)
SourceGeneration\GeneratorAdaptor.cs (1)
51var contextBuilderSource = context.CompilationProvider
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithMetadataName.cs (1)
95.Combine(_context.CompilationProvider)
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithSimpleName.cs (1)
65var syntaxTreesProvider = _context.CompilationProvider
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (4)
CommandLineTests.cs (4)
10473var syntaxTreeInput = ctx.CompilationProvider.Select((c, _) => c.SyntaxTrees.First()); 10541ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, po) => 10581ctx.RegisterHostOutput(ctx.CompilationProvider, (hostCtx, value) => 10588ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, po) =>
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (53)
SourceGeneration\GeneratorDriverTests.cs (52)
493ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => 504ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => 1477var generator = new IncrementalGeneratorWrapper(new PipelineCallbackGenerator((ctx) => ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => throw e))); 1547var name = ctx.CompilationProvider.Select((c, _) => new ThrowWhenEqualsItem(e)); 1595ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => spc.AddSource("test", "")); 1596ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => throw e); 1624ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => throw e); 1629ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => spc.AddSource("test", "")); 1739ctx.RegisterSourceOutput(ctx.CompilationProvider.Select((c, ct) => c).WithTrackingName("IdentityTransform"), (spc, c) => { }); 1786ctx.RegisterSourceOutput(ctx.CompilationProvider.Select((c, ct) => c).WithTrackingName("CompilationTransform"), (spc, c) => { }); 2004var compilationSource = ctx.CompilationProvider.WithComparer(new LambdaComparer<Compilation>((c1, c2) => true, 0)); 2040var compilationSource = ctx.CompilationProvider.Combine(ctx.AdditionalTextsProvider.Collect()) 2302var source = ctx.CompilationProvider; 2303var source2 = ctx.CompilationProvider.Combine(source); 2304var source3 = ctx.CompilationProvider.Combine(source2); 2305var source4 = ctx.CompilationProvider.Combine(source3); 2306var source5 = ctx.CompilationProvider.Combine(source4); 2602var step1 = ctx.CompilationProvider.Select((c, ct) => { generatorCancelled = true; cts.Cancel(); return c; }); 2695ctx.CompilationProvider.Combine(classDeclarations.Collect()); 3222ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, ct) => context.AddSource("Source", "")); 3223ctx.RegisterImplementationSourceOutput(ctx.CompilationProvider, (context, ct) => context.AddSource("Implementation", "")); 3288ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, ct) => { }); 3422ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, ct) => { }); 3481ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) => 3525ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) => 3553ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) => 3584ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) => 3593ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) => 3632ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) => 3676var nullArray = ctx.CompilationProvider.Select((c, _) => null as object[]); 3751ctx.RegisterSourceOutput(ctx.CompilationProvider, (ctx, _) => 3783ctx.RegisterSourceOutput(ctx.CompilationProvider, (ctx, comp) => 3877ctx.RegisterSourceOutput(ctx.CompilationProvider, (ctx, comp) => 3951ctx.RegisterSourceOutput(ctx.CompilationProvider, (ctx, comp) => 4043ctx.RegisterSourceOutput(ctx.CompilationProvider, (ctx, comp) => 4481var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen1Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator1"); }); }).AsSourceGenerator(); 4482var generator2 = new PipelineCallbackGenerator2((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen2Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator2"); }); }).AsSourceGenerator(); 4526var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen1Source.cs", "//" + c.SyntaxTrees.First().GetRoot().ToFullString() + " generator1"); }); }).AsSourceGenerator(); 4527var generator2 = new PipelineCallbackGenerator2((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen2Source.cs", "//" + c.SyntaxTrees.First().GetRoot().ToFullString() + " generator2"); }); }).AsSourceGenerator(); 4550var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen1Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator1"); }); }).AsSourceGenerator(); 4551var generator2 = new PipelineCallbackGenerator2((ctx) => { initWasCalled = true; ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen2Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator2"); }); }).AsSourceGenerator(); 4579var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { stepRan = true; }); }).AsSourceGenerator(); 4609ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) => 4692var generator = new PipelineCallbackGenerator((ctx) => { ctx.RegisterHostOutput(ctx.CompilationProvider, (hostCtx, c) => { hostCtx.AddOutput("a", "value"); }); }); 4709var generator = new PipelineCallbackGenerator((ctx) => { ctx.RegisterHostOutput(ctx.CompilationProvider, (hostCtx, c) => { hostCtx.AddOutput("a", "value"); }); }); 4727var generator = new PipelineCallbackGenerator((ctx) => { ctx.RegisterHostOutput(ctx.CompilationProvider, (hostCtx, c) => { hostCtx.AddOutput("a", "value"); hostCtx.AddOutput("b", "value2"); }); }); 4747var generator = new PipelineCallbackGenerator((ctx) => { ctx.RegisterHostOutput(ctx.CompilationProvider, (hostCtx, c) => { hostCtx.AddOutput("a", "value"); hostCtx.AddOutput("a", "value2"); }); }); 4764var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterHostOutput(ctx.CompilationProvider, (hostCtx, c) => { hostCtx.AddOutput("gen1", "value1"); }); }); 4765var generator2 = new PipelineCallbackGenerator2((ctx) => { ctx.RegisterHostOutput(ctx.CompilationProvider, (hostCtx, c) => { hostCtx.AddOutput("gen2", "value2"); }); }); 4782var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterHostOutput(ctx.CompilationProvider, (hostCtx, c) => { hostCtx.AddOutput("gen", "value1"); }); }); 4783var generator2 = new PipelineCallbackGenerator2((ctx) => { ctx.RegisterHostOutput(ctx.CompilationProvider, (hostCtx, c) => { hostCtx.AddOutput("gen", "value2"); }); }); 4800var generator = new PipelineCallbackGenerator((ctx) => { ctx.RegisterHostOutput(ctx.CompilationProvider, (hostCtx, c) => { throw new InvalidOperationException("failed"); }); });
SourceGeneration\SyntaxAwareGeneratorTests.cs (1)
1945ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, s) => spc.AddSource("test", ""));
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
AbstractResxGenerator.cs (1)
39var compilationInformation = context.CompilationProvider.Select(
Microsoft.Extensions.Logging.Generators (2)
src\libraries\Common\src\Roslyn\SyntaxValueProvider_ForAttributeWithMetadataName.cs (1)
117.Combine(context.CompilationProvider)
src\libraries\Common\src\Roslyn\SyntaxValueProvider_ForAttributeWithSimpleName.cs (1)
99var syntaxTreesProvider = context.CompilationProvider
Microsoft.Extensions.Options.SourceGeneration (1)
Generator.cs (1)
28context.CompilationProvider.Combine(typeDeclarations.Collect());
Microsoft.Gen.BuildMetadata (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
69var compilationAndTypes = context.CompilationProvider.Combine(declarations.Collect());
Microsoft.Gen.ComplianceReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
69var compilationAndTypes = context.CompilationProvider.Combine(declarations.Collect());
Microsoft.Gen.ContextualOptions (2)
ContextualOptionsGenerator.cs (1)
25context.CompilationProvider.Combine(typeDeclarations.Collect());
src\Generators\Shared\GeneratorUtilities.cs (1)
69var compilationAndTypes = context.CompilationProvider.Combine(declarations.Collect());
Microsoft.Gen.Logging (2)
LoggingGenerator.cs (1)
26context.CompilationProvider.Combine(typeDeclarations.Collect());
src\Generators\Shared\GeneratorUtilities.cs (1)
69var compilationAndTypes = context.CompilationProvider.Combine(declarations.Collect());
Microsoft.Gen.MetadataExtractor (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
69var compilationAndTypes = context.CompilationProvider.Combine(declarations.Collect());
Microsoft.Gen.Metrics (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
69var compilationAndTypes = context.CompilationProvider.Combine(declarations.Collect());
Microsoft.Gen.MetricsReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
69var compilationAndTypes = context.CompilationProvider.Combine(declarations.Collect());
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSExportGenerator.cs (1)
36var assemblyName = context.CompilationProvider.Select(static (c, _) => c.AssemblyName);
Microsoft.Interop.SourceGeneration (1)
IncrementalGeneratorInitializationContextExtensions.cs (1)
43return context.CompilationProvider
Microsoft.Maui.Controls.SourceGen (1)
CodeBehindGenerator.cs (1)
57 var referenceCompilationProvider = initContext.CompilationProvider
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Roslyn4.0.cs (1)
31IncrementalValueProvider<KnownTypeSymbols> knownTypeSymbols = context.CompilationProvider
System.Windows.Forms.Analyzers.CSharp (1)
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ApplicationConfigurationGenerator.cs (1)
74IncrementalValueProvider<OutputKind> outputKindProvider = context.CompilationProvider.Select((compilation, _)
System.Windows.Forms.PrivateSourceGenerators (1)
System\Windows\Forms\SourceGenerators\EnumValidationGenerator.cs (1)
74IncrementalValuesProvider<EnumValidationInfo> enumsToValidate = context.CompilationProvider.Combine(argumentsToValidate.Collect()).SelectMany(