35 references to CompilationProvider
Microsoft.CodeAnalysis (3)
SourceGeneration\GeneratorAdaptor.cs (1)
38var contextBuilderSource = context.CompilationProvider
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithMetadataName.cs (1)
90.Combine(_context.CompilationProvider)
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithSimpleName.cs (1)
65var syntaxTreesProvider = _context.CompilationProvider
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
10179var syntaxTreeInput = ctx.CompilationProvider.Select((c, _) => c.SyntaxTrees.First()); 10247ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, po) =>
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (30)
SourceGeneration\GeneratorDriverTests.cs (29)
501ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => 512ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => 1462var generator = new IncrementalGeneratorWrapper(new PipelineCallbackGenerator((ctx) => ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => throw e))); 1489ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => spc.AddSource("test", "")); 1490ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => throw e); 1518ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => throw e); 1523ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => spc.AddSource("test", "")); 1633ctx.RegisterSourceOutput(ctx.CompilationProvider.Select((c, ct) => c).WithTrackingName("IdentityTransform"), (spc, c) => { }); 1680ctx.RegisterSourceOutput(ctx.CompilationProvider.Select((c, ct) => c).WithTrackingName("CompilationTransform"), (spc, c) => { }); 1898var compilationSource = ctx.CompilationProvider.WithComparer(new LambdaComparer<Compilation>((c1, c2) => true, 0)); 1934var compilationSource = ctx.CompilationProvider.Combine(ctx.AdditionalTextsProvider.Collect()) 2072var source = ctx.CompilationProvider; 2073var source2 = ctx.CompilationProvider.Combine(source); 2074var source3 = ctx.CompilationProvider.Combine(source2); 2075var source4 = ctx.CompilationProvider.Combine(source3); 2076var source5 = ctx.CompilationProvider.Combine(source4); 2180var step1 = ctx.CompilationProvider.Select((c, ct) => { generatorCancelled = true; cts.Cancel(); return c; }); 2269ctx.CompilationProvider.Combine(classDeclarations.Collect()); 2787ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, ct) => context.AddSource("Source", "")); 2788ctx.RegisterImplementationSourceOutput(ctx.CompilationProvider, (context, ct) => context.AddSource("Implementation", "")); 2832ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, ct) => { }); 2962ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, ct) => { }); 3021ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) => 3065ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) => 3093ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) => 3124ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) => 3133ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) => 3172ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) => 3216var nullArray = ctx.CompilationProvider.Select((c, _) => null as object[]);
SourceGeneration\SyntaxAwareGeneratorTests.cs (1)
1954ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, s) => spc.AddSource("test", ""));