48 references to RegisterSourceOutput
Microsoft.CodeAnalysis (3)
SourceGeneration\GeneratorAdaptor.cs (1)
52context.RegisterSourceOutput(contextBuilderSource, (productionContext, contextBuilder) =>
SourceGeneration\IncrementalContexts.cs (1)
123/// Context passed to an incremental generator when it has registered an output via <see cref="IncrementalGeneratorInitializationContext.RegisterSourceOutput{TSource}(IncrementalValueProvider{TSource}, Action{SourceProductionContext, TSource})"/>
SourceGeneration\Nodes\IIncrementalGeneratorOutputNode.cs (1)
37/// A regular source output, registered via <see cref="IncrementalGeneratorInitializationContext.RegisterSourceOutput{TSource}(IncrementalValueProvider{TSource}, Action{SourceProductionContext, TSource})"/>
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (11)
CommandLineTests.cs (11)
9876ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, po) => 9925ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, po) => 9981ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, po) => 10049ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, po) => 10057ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, po) => 10105ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, po) => 10162ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, po) => 10167ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider, (spc, po) => 10173ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider.Select((p, _) => { p.GlobalOptions.TryGetValue("a", out var value); return value; }), (spc, value) => 10180ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider.Combine(syntaxTreeInput).Select((p, _) => { p.Left.GetOptions(p.Right).TryGetValue("a", out var value); return value; }), (spc, value) => 10247ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, po) =>
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (34)
SourceGeneration\GeneratorDriverTests.cs (33)
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) => { }); 1899ctx.RegisterSourceOutput(compilationSource, (spc, c) => 1940ctx.RegisterSourceOutput(compilationSource, (spc, c) => 2078ctx.RegisterSourceOutput(source5, (spc, c) => 2183ctx.RegisterSourceOutput(step2, (spc, c) => spc.AddSource("a", "")); 2205ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, p) => { }); 2271ctx.RegisterSourceOutput(compilationAndClasses, (context, ct) => validate(ct.Item1, ct.Item2)); 2326ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider.Select((p, ct) => 2787ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, ct) => context.AddSource("Source", "")); 2832ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, ct) => { }); 2833ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider, (context, ct) => { }); 2834ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (context, ct) => { }); 2962ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, ct) => { }); 2963ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider, (context, ct) => { }); 2964ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (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) => 3301ctx.RegisterSourceOutput(combine, (spc, c) => { }); 3318ctx.RegisterSourceOutput(combine, (spc, c) => { }); 3344ctx.RegisterSourceOutput(source, (spc, c) => { }); 3356ctx.RegisterSourceOutput(source, (spc, c) => { wasCalled = true; });
SourceGeneration\SyntaxAwareGeneratorTests.cs (1)
1954ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, s) => spc.AddSource("test", ""));