94 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)
489ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) =>
500ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) =>
1473var generator = new IncrementalGeneratorWrapper(new PipelineCallbackGenerator((ctx) => ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => throw e)));
1543var name = ctx.CompilationProvider.Select((c, _) => new ThrowWhenEqualsItem(e));
1591ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => spc.AddSource("test", ""));
1592ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => throw e);
1620ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => throw e);
1625ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => spc.AddSource("test", ""));
1735ctx.RegisterSourceOutput(ctx.CompilationProvider.Select((c, ct) => c).WithTrackingName("IdentityTransform"), (spc, c) => { });
1782ctx.RegisterSourceOutput(ctx.CompilationProvider.Select((c, ct) => c).WithTrackingName("CompilationTransform"), (spc, c) => { });
2000var compilationSource = ctx.CompilationProvider.WithComparer(new LambdaComparer<Compilation>((c1, c2) => true, 0));
2036var compilationSource = ctx.CompilationProvider.Combine(ctx.AdditionalTextsProvider.Collect())
2298var source = ctx.CompilationProvider;
2299var source2 = ctx.CompilationProvider.Combine(source);
2300var source3 = ctx.CompilationProvider.Combine(source2);
2301var source4 = ctx.CompilationProvider.Combine(source3);
2302var source5 = ctx.CompilationProvider.Combine(source4);
2598var step1 = ctx.CompilationProvider.Select((c, ct) => { generatorCancelled = true; cts.Cancel(); return c; });
2691ctx.CompilationProvider.Combine(classDeclarations.Collect());
3218ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, ct) => context.AddSource("Source", ""));
3219ctx.RegisterImplementationSourceOutput(ctx.CompilationProvider, (context, ct) => context.AddSource("Implementation", ""));
3284ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, ct) => { });
3418ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, ct) => { });
3477ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) =>
3521ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) =>
3549ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) =>
3580ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) =>
3589ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) =>
3628ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) =>
3672var nullArray = ctx.CompilationProvider.Select((c, _) => null as object[]);
3747ctx.RegisterSourceOutput(ctx.CompilationProvider, (ctx, _) =>
3779ctx.RegisterSourceOutput(ctx.CompilationProvider, (ctx, comp) =>
3873ctx.RegisterSourceOutput(ctx.CompilationProvider, (ctx, comp) =>
3905ctx.RegisterSourceOutput(ctx.CompilationProvider, (ctx, comp) =>
3997ctx.RegisterSourceOutput(ctx.CompilationProvider, (ctx, comp) =>
4438var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen1Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator1"); }); }).AsSourceGenerator();
4439var generator2 = new PipelineCallbackGenerator2((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen2Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator2"); }); }).AsSourceGenerator();
4483var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen1Source.cs", "//" + c.SyntaxTrees.First().GetRoot().ToFullString() + " generator1"); }); }).AsSourceGenerator();
4484var generator2 = new PipelineCallbackGenerator2((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen2Source.cs", "//" + c.SyntaxTrees.First().GetRoot().ToFullString() + " generator2"); }); }).AsSourceGenerator();
4507var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen1Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator1"); }); }).AsSourceGenerator();
4508var generator2 = new PipelineCallbackGenerator2((ctx) => { initWasCalled = true; ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen2Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator2"); }); }).AsSourceGenerator();
4536var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { stepRan = true; }); }).AsSourceGenerator();
4566ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) =>
4649var generator = new PipelineCallbackGenerator((ctx) => { ctx.RegisterHostOutput(ctx.CompilationProvider, (hostCtx, c) => { hostCtx.AddOutput("a", "value"); }); });
4666var generator = new PipelineCallbackGenerator((ctx) => { ctx.RegisterHostOutput(ctx.CompilationProvider, (hostCtx, c) => { hostCtx.AddOutput("a", "value"); }); });
4684var generator = new PipelineCallbackGenerator((ctx) => { ctx.RegisterHostOutput(ctx.CompilationProvider, (hostCtx, c) => { hostCtx.AddOutput("a", "value"); hostCtx.AddOutput("b", "value2"); }); });
4704var generator = new PipelineCallbackGenerator((ctx) => { ctx.RegisterHostOutput(ctx.CompilationProvider, (hostCtx, c) => { hostCtx.AddOutput("a", "value"); hostCtx.AddOutput("a", "value2"); }); });
4721var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterHostOutput(ctx.CompilationProvider, (hostCtx, c) => { hostCtx.AddOutput("gen1", "value1"); }); });
4722var generator2 = new PipelineCallbackGenerator2((ctx) => { ctx.RegisterHostOutput(ctx.CompilationProvider, (hostCtx, c) => { hostCtx.AddOutput("gen2", "value2"); }); });
4739var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterHostOutput(ctx.CompilationProvider, (hostCtx, c) => { hostCtx.AddOutput("gen", "value1"); }); });
4740var generator2 = new PipelineCallbackGenerator2((ctx) => { ctx.RegisterHostOutput(ctx.CompilationProvider, (hostCtx, c) => { hostCtx.AddOutput("gen", "value2"); }); });
4757var generator = new PipelineCallbackGenerator((ctx) => { ctx.RegisterHostOutput(ctx.CompilationProvider, (hostCtx, c) => { throw new InvalidOperationException("failed"); }); });
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (2)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (5)
Microsoft.Extensions.Logging.Generators (3)
Microsoft.Extensions.Options.SourceGeneration (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.ComInterfaceGenerator (1)
Microsoft.Interop.JavaScript.JSImportGenerator (1)
Microsoft.Interop.LibraryImportGenerator (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)