88 references to RegisterSourceOutput
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)
10164ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, po) =>
10214ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, po) =>
10271ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, po) =>
10340ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, po) =>
10349ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, po) =>
10398ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, po) =>
10455ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, po) =>
10461ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider, (spc, po) =>
10467ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider.Select((p, _) => { p.GlobalOptions.TryGetValue("a", out var value); return value; }), (spc, value) =>
10474ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider.Combine(syntaxTreeInput).Select((p, _) => { p.Left.GetOptions(p.Right).TryGetValue("a", out var value); return value; }), (spc, value) =>
10541ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, po) =>
10588ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, po) =>
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (50)
SourceGeneration\GeneratorDriverTests.cs (49)
493ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) =>
504ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) =>
1477var generator = new IncrementalGeneratorWrapper(new PipelineCallbackGenerator((ctx) => ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => throw e)));
1548ctx.RegisterSourceOutput(name, (spc, n) => spc.AddSource("item.cs", "// generated"));
1595ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => spc.AddSource("test", ""));
1596ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => throw e);
1624ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => throw e);
1629ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => spc.AddSource("test", ""));
1739ctx.RegisterSourceOutput(ctx.CompilationProvider.Select((c, ct) => c).WithTrackingName("IdentityTransform"), (spc, c) => { });
1786ctx.RegisterSourceOutput(ctx.CompilationProvider.Select((c, ct) => c).WithTrackingName("CompilationTransform"), (spc, c) => { });
2005ctx.RegisterSourceOutput(compilationSource, (spc, c) =>
2046ctx.RegisterSourceOutput(compilationSource, (spc, c) =>
2173ctx.RegisterSourceOutput(invokedMethodsProvider, static (spc, invokedMethods) =>
2308ctx.RegisterSourceOutput(source5, (spc, c) =>
2605ctx.RegisterSourceOutput(step2, (spc, c) => spc.AddSource("a", ""));
2627ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (spc, p) => { });
2697ctx.RegisterSourceOutput(compilationAndClasses, (context, ct) => validate(ct.Item1, ct.Item2));
2756ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider.Select((p, ct) =>
3222ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, ct) => context.AddSource("Source", ""));
3288ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, ct) => { });
3289ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider, (context, ct) => { });
3290ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (context, ct) => { });
3422ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, ct) => { });
3423ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider, (context, ct) => { });
3424ctx.RegisterSourceOutput(ctx.ParseOptionsProvider, (context, ct) => { });
3481ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) =>
3525ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) =>
3553ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) =>
3584ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) =>
3593ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) =>
3632ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) =>
3751ctx.RegisterSourceOutput(ctx.CompilationProvider, (ctx, _) =>
3783ctx.RegisterSourceOutput(ctx.CompilationProvider, (ctx, comp) =>
3877ctx.RegisterSourceOutput(ctx.CompilationProvider, (ctx, comp) =>
3951ctx.RegisterSourceOutput(ctx.CompilationProvider, (ctx, comp) =>
4043ctx.RegisterSourceOutput(ctx.CompilationProvider, (ctx, comp) =>
4114ctx.RegisterSourceOutput(combine, (spc, c) => { });
4131ctx.RegisterSourceOutput(combine, (spc, c) => { });
4157ctx.RegisterSourceOutput(source, (spc, c) => { });
4169ctx.RegisterSourceOutput(source, (spc, c) => { wasCalled = true; });
4392context.RegisterSourceOutput(interceptorInfos, (context, interceptorInfos) =>
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();
4526var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen1Source.cs", "//" + c.SyntaxTrees.First().GetRoot().ToFullString() + " generator1"); }); }).AsSourceGenerator();
4527var generator2 = new PipelineCallbackGenerator2((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen2Source.cs", "//" + c.SyntaxTrees.First().GetRoot().ToFullString() + " generator2"); }); }).AsSourceGenerator();
4550var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen1Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator1"); }); }).AsSourceGenerator();
4551var generator2 = new PipelineCallbackGenerator2((ctx) => { initWasCalled = true; ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen2Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator2"); }); }).AsSourceGenerator();
4579var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { stepRan = true; }); }).AsSourceGenerator();
4609ctx.RegisterSourceOutput(ctx.CompilationProvider, (context, text) =>
Microsoft.Extensions.Logging.Generators (1)
Microsoft.Extensions.Options.SourceGeneration (1)
Microsoft.Gen.BuildMetadata (2)
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)