87 references to RegisterSourceOutput
CSharpSyntaxGenerator (1)
Microsoft.AspNetCore.App.SourceGenerators (1)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (2)
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (12)
CommandLineTests.cs (12)
10087ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, po) =>
10137ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, po) =>
10194ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, po) =>
10263ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, po) =>
10272ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, po) =>
10321ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, po) =>
10378ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, po) =>
10384ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider, (spc, po) =>
10390ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider.Select((p, _) => { p.GlobalOptions.TryGetValue("a", out var value); return value; }), (spc, value) =>
10397ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider.Combine(syntaxTreeInput).Select((p, _) => { p.Left.GetOptions(p.Right).TryGetValue("a", out var value); return value; }), (spc, value) =>
10464ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, po) =>
10511ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, po) =>
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (50)
SourceGeneration\GeneratorDriverTests.cs (49)
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)));
1544ctx.RegisterSourceOutput(name, (spc, n) => spc.AddSource("item.cs", "// generated"));
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) => { });
2001ctx.RegisterSourceOutput(compilationSource, (spc, c) =>
2042ctx.RegisterSourceOutput(compilationSource, (spc, c) =>
2169ctx.RegisterSourceOutput(invokedMethodsProvider, static (spc, invokedMethods) =>
2304ctx.RegisterSourceOutput(source5, (spc, c) =>
2599ctx.RegisterSourceOutput(step2, (spc, c) => spc.AddSource("a", ""));
2621ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, p) => { });
2691ctx.RegisterSourceOutput(compilationAndClasses, (context, ct) => validate(ct.Item1, ct.Item2));
2750ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider.Select((p, ct) =>
3216ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, ct) => context.AddSource("Source", ""));
3282ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, ct) => { });
3283ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider, (context, ct) => { });
3284ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (context, ct) => { });
3416ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, ct) => { });
3417ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider, (context, ct) => { });
3418ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (context, ct) => { });
3475ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) =>
3519ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) =>
3547ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) =>
3578ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) =>
3587ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) =>
3626ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) =>
3745ctx.RegisterSourceOutput(ctx.CompilationProvider, (ctx, _) =>
3777ctx.RegisterSourceOutput(ctx.CompilationProvider, (ctx, comp) =>
3871ctx.RegisterSourceOutput(ctx.CompilationProvider, (ctx, comp) =>
3903ctx.RegisterSourceOutput(ctx.CompilationProvider, (ctx, comp) =>
3995ctx.RegisterSourceOutput(ctx.CompilationProvider, (ctx, comp) =>
4066ctx.RegisterSourceOutput(combine, (spc, c) => { });
4083ctx.RegisterSourceOutput(combine, (spc, c) => { });
4109ctx.RegisterSourceOutput(source, (spc, c) => { });
4121ctx.RegisterSourceOutput(source, (spc, c) => { wasCalled = true; });
4347context.RegisterSourceOutput(interceptorInfos, (context, interceptorInfos) =>
4436var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen1Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator1"); }); }).AsSourceGenerator();
4437var generator2 = new PipelineCallbackGenerator2((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen2Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator2"); }); }).AsSourceGenerator();
4481var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen1Source.cs", "//" + c.SyntaxTrees.First().GetRoot().ToFullString() + " generator1"); }); }).AsSourceGenerator();
4482var generator2 = new PipelineCallbackGenerator2((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen2Source.cs", "//" + c.SyntaxTrees.First().GetRoot().ToFullString() + " generator2"); }); }).AsSourceGenerator();
4505var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen1Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator1"); }); }).AsSourceGenerator();
4506var generator2 = new PipelineCallbackGenerator2((ctx) => { initWasCalled = true; ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen2Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator2"); }); }).AsSourceGenerator();
4534var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { stepRan = true; }); }).AsSourceGenerator();
4564ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) =>
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
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.JavaScript.JSImportGenerator (1)
Microsoft.Interop.SourceGeneration (1)
System.Private.CoreLib.Generators (1)
System.Text.RegularExpressions.Generator (1)
System.Windows.Forms.Analyzers.CSharp (1)
System.Windows.Forms.PrivateSourceGenerators (1)