48 references to RegisterSourceOutput
Microsoft.CodeAnalysis (3)
SourceGeneration\GeneratorAdaptor.cs (1)
52
context.
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)
9876
ctx.
RegisterSourceOutput
(ctx.ParseOptionsProvider, (spc, po) =>
9925
ctx.
RegisterSourceOutput
(ctx.ParseOptionsProvider, (spc, po) =>
9981
ctx.
RegisterSourceOutput
(ctx.ParseOptionsProvider, (spc, po) =>
10049
ctx.
RegisterSourceOutput
(ctx.ParseOptionsProvider, (spc, po) =>
10057
ctx.
RegisterSourceOutput
(ctx.ParseOptionsProvider, (spc, po) =>
10105
ctx.
RegisterSourceOutput
(ctx.ParseOptionsProvider, (spc, po) =>
10162
ctx.
RegisterSourceOutput
(ctx.ParseOptionsProvider, (spc, po) =>
10167
ctx.
RegisterSourceOutput
(ctx.AnalyzerConfigOptionsProvider, (spc, po) =>
10173
ctx.
RegisterSourceOutput
(ctx.AnalyzerConfigOptionsProvider.Select((p, _) => { p.GlobalOptions.TryGetValue("a", out var value); return value; }), (spc, value) =>
10180
ctx.
RegisterSourceOutput
(ctx.AnalyzerConfigOptionsProvider.Combine(syntaxTreeInput).Select((p, _) => { p.Left.GetOptions(p.Right).TryGetValue("a", out var value); return value; }), (spc, value) =>
10247
ctx.
RegisterSourceOutput
(ctx.CompilationProvider, (spc, po) =>
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (34)
SourceGeneration\GeneratorDriverTests.cs (33)
501
ctx.
RegisterSourceOutput
(ctx.CompilationProvider, (spc, c) =>
512
ctx.
RegisterSourceOutput
(ctx.CompilationProvider, (spc, c) =>
1462
var generator = new IncrementalGeneratorWrapper(new PipelineCallbackGenerator((ctx) => ctx.
RegisterSourceOutput
(ctx.CompilationProvider, (spc, c) => throw e)));
1489
ctx.
RegisterSourceOutput
(ctx.CompilationProvider, (spc, c) => spc.AddSource("test", ""));
1490
ctx.
RegisterSourceOutput
(ctx.CompilationProvider, (spc, c) => throw e);
1518
ctx.
RegisterSourceOutput
(ctx.CompilationProvider, (spc, c) => throw e);
1523
ctx.
RegisterSourceOutput
(ctx.CompilationProvider, (spc, c) => spc.AddSource("test", ""));
1633
ctx.
RegisterSourceOutput
(ctx.CompilationProvider.Select((c, ct) => c).WithTrackingName("IdentityTransform"), (spc, c) => { });
1680
ctx.
RegisterSourceOutput
(ctx.CompilationProvider.Select((c, ct) => c).WithTrackingName("CompilationTransform"), (spc, c) => { });
1899
ctx.
RegisterSourceOutput
(compilationSource, (spc, c) =>
1940
ctx.
RegisterSourceOutput
(compilationSource, (spc, c) =>
2078
ctx.
RegisterSourceOutput
(source5, (spc, c) =>
2183
ctx.
RegisterSourceOutput
(step2, (spc, c) => spc.AddSource("a", ""));
2205
ctx.
RegisterSourceOutput
(ctx.ParseOptionsProvider, (spc, p) => { });
2271
ctx.
RegisterSourceOutput
(compilationAndClasses, (context, ct) => validate(ct.Item1, ct.Item2));
2326
ctx.
RegisterSourceOutput
(ctx.AnalyzerConfigOptionsProvider.Select((p, ct) =>
2787
ctx.
RegisterSourceOutput
(ctx.CompilationProvider, (context, ct) => context.AddSource("Source", ""));
2832
ctx.
RegisterSourceOutput
(ctx.CompilationProvider, (context, ct) => { });
2833
ctx.
RegisterSourceOutput
(ctx.AnalyzerConfigOptionsProvider, (context, ct) => { });
2834
ctx.
RegisterSourceOutput
(ctx.ParseOptionsProvider, (context, ct) => { });
2962
ctx.
RegisterSourceOutput
(ctx.CompilationProvider, (context, ct) => { });
2963
ctx.
RegisterSourceOutput
(ctx.AnalyzerConfigOptionsProvider, (context, ct) => { });
2964
ctx.
RegisterSourceOutput
(ctx.ParseOptionsProvider, (context, ct) => { });
3021
ctx.
RegisterSourceOutput
(ctx.CompilationProvider, (context, text) =>
3065
ctx.
RegisterSourceOutput
(ctx.CompilationProvider, (context, text) =>
3093
ctx.
RegisterSourceOutput
(ctx.CompilationProvider, (context, text) =>
3124
ctx.
RegisterSourceOutput
(ctx.CompilationProvider, (context, text) =>
3133
ctx.
RegisterSourceOutput
(ctx.CompilationProvider, (context, text) =>
3172
ctx.
RegisterSourceOutput
(ctx.CompilationProvider, (context, text) =>
3301
ctx.
RegisterSourceOutput
(combine, (spc, c) => { });
3318
ctx.
RegisterSourceOutput
(combine, (spc, c) => { });
3344
ctx.
RegisterSourceOutput
(source, (spc, c) => { });
3356
ctx.
RegisterSourceOutput
(source, (spc, c) => { wasCalled = true; });
SourceGeneration\SyntaxAwareGeneratorTests.cs (1)
1954
ctx.
RegisterSourceOutput
(ctx.CompilationProvider, (spc, s) => spc.AddSource("test", ""));