83 references to RegisterSourceOutput
Microsoft.AspNetCore.App.SourceGenerators (1)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (2)
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (12)
CommandLineTests.cs (12)
10068ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, po) =>
10118ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, po) =>
10175ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, po) =>
10244ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, po) =>
10253ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, po) =>
10302ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, po) =>
10359ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, po) =>
10365ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider, (spc, po) =>
10371ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider.Select((p, _) => { p.GlobalOptions.TryGetValue("a", out var value); return value; }), (spc, value) =>
10378ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider.Combine(syntaxTreeInput).Select((p, _) => { p.Left.GetOptions(p.Right).TryGetValue("a", out var value); return value; }), (spc, value) =>
10445ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, po) =>
10492ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, po) =>
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (49)
SourceGeneration\GeneratorDriverTests.cs (48)
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)));
1543ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => spc.AddSource("test", ""));
1544ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => throw e);
1572ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => throw e);
1577ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => spc.AddSource("test", ""));
1687ctx.RegisterSourceOutput(ctx.CompilationProvider.Select((c, ct) => c).WithTrackingName("IdentityTransform"), (spc, c) => { });
1734ctx.RegisterSourceOutput(ctx.CompilationProvider.Select((c, ct) => c).WithTrackingName("CompilationTransform"), (spc, c) => { });
1953ctx.RegisterSourceOutput(compilationSource, (spc, c) =>
1994ctx.RegisterSourceOutput(compilationSource, (spc, c) =>
2121ctx.RegisterSourceOutput(invokedMethodsProvider, static (spc, invokedMethods) =>
2256ctx.RegisterSourceOutput(source5, (spc, c) =>
2469ctx.RegisterSourceOutput(step2, (spc, c) => spc.AddSource("a", ""));
2491ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, p) => { });
2561ctx.RegisterSourceOutput(compilationAndClasses, (context, ct) => validate(ct.Item1, ct.Item2));
2620ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider.Select((p, ct) =>
3086ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, ct) => context.AddSource("Source", ""));
3152ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, ct) => { });
3153ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider, (context, ct) => { });
3154ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (context, ct) => { });
3286ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, ct) => { });
3287ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider, (context, ct) => { });
3288ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (context, ct) => { });
3345ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) =>
3389ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) =>
3417ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) =>
3448ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) =>
3457ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) =>
3496ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) =>
3615ctx.RegisterSourceOutput(ctx.CompilationProvider, (ctx, _) =>
3647ctx.RegisterSourceOutput(ctx.CompilationProvider, (ctx, comp) =>
3741ctx.RegisterSourceOutput(ctx.CompilationProvider, (ctx, comp) =>
3773ctx.RegisterSourceOutput(ctx.CompilationProvider, (ctx, comp) =>
3865ctx.RegisterSourceOutput(ctx.CompilationProvider, (ctx, comp) =>
3936ctx.RegisterSourceOutput(combine, (spc, c) => { });
3953ctx.RegisterSourceOutput(combine, (spc, c) => { });
3979ctx.RegisterSourceOutput(source, (spc, c) => { });
3991ctx.RegisterSourceOutput(source, (spc, c) => { wasCalled = true; });
4217context.RegisterSourceOutput(interceptorInfos, (context, interceptorInfos) =>
4306var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen1Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator1"); }); }).AsSourceGenerator();
4307var generator2 = new PipelineCallbackGenerator2((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen2Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator2"); }); }).AsSourceGenerator();
4351var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen1Source.cs", "//" + c.SyntaxTrees.First().GetRoot().ToFullString() + " generator1"); }); }).AsSourceGenerator();
4352var generator2 = new PipelineCallbackGenerator2((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen2Source.cs", "//" + c.SyntaxTrees.First().GetRoot().ToFullString() + " generator2"); }); }).AsSourceGenerator();
4375var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen1Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator1"); }); }).AsSourceGenerator();
4376var generator2 = new PipelineCallbackGenerator2((ctx) => { initWasCalled = true; ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen2Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator2"); }); }).AsSourceGenerator();
4404var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { stepRan = true; }); }).AsSourceGenerator();
4434ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) =>
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
Microsoft.Extensions.Logging.Generators (1)
Microsoft.Extensions.Options.SourceGeneration (1)
Microsoft.Gen.ComplianceReports (1)
Microsoft.Gen.ContextualOptions (2)
Microsoft.Gen.Logging (2)
Microsoft.Gen.Metrics (1)
Microsoft.Gen.MetricsReports (1)
Microsoft.Interop.JavaScript.JSImportGenerator (1)
Microsoft.Interop.SourceGeneration (1)
System.Text.RegularExpressions.Generator (1)
System.Windows.Forms.Analyzers.CSharp (1)
System.Windows.Forms.PrivateSourceGenerators (1)