85 references to CompilationProvider
Microsoft.AspNetCore.App.SourceGenerators (1)
Microsoft.AspNetCore.OpenApi.SourceGenerators (3)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (2)
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (4)
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"); }); });
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
Microsoft.Extensions.Logging.Generators (2)
Microsoft.Extensions.Options.SourceGeneration (1)
Microsoft.Gen.BuildMetadata (1)
Microsoft.Gen.ComplianceReports (1)
Microsoft.Gen.ContextualOptions (2)
Microsoft.Gen.Logging (2)
Microsoft.Gen.MetadataExtractor (1)
Microsoft.Gen.Metrics (1)
Microsoft.Gen.MetricsReports (1)
Microsoft.Interop.JavaScript.JSImportGenerator (1)
Microsoft.Interop.SourceGeneration (1)
Microsoft.Maui.Controls.SourceGen (1)
System.Text.Json.SourceGeneration (1)
System.Windows.Forms.Analyzers.CSharp (1)
System.Windows.Forms.PrivateSourceGenerators (1)