12 references to RegisterHostOutput
Microsoft.CodeAnalysis (1)
SourceGeneration\Nodes\IIncrementalGeneratorOutputNode.cs (1)
54
/// A host specific output, registered via <see cref="IncrementalGeneratorInitializationContext.
RegisterHostOutput
{TSource}(IncrementalValueProvider{TSource}, Action{HostOutputProductionContext, TSource})"/>
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
10506
ctx.
RegisterHostOutput
(ctx.CompilationProvider, (hostCtx, value) =>
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (10)
SourceGeneration\GeneratorDriverTests.cs (10)
3220
ctx.
RegisterHostOutput
(ctx.CompilationOptionsProvider, (context, ct) => context.AddOutput("Host", ""));
4649
var generator = new PipelineCallbackGenerator((ctx) => { ctx.
RegisterHostOutput
(ctx.CompilationProvider, (hostCtx, c) => { hostCtx.AddOutput("a", "value"); }); });
4666
var generator = new PipelineCallbackGenerator((ctx) => { ctx.
RegisterHostOutput
(ctx.CompilationProvider, (hostCtx, c) => { hostCtx.AddOutput("a", "value"); }); });
4684
var generator = new PipelineCallbackGenerator((ctx) => { ctx.
RegisterHostOutput
(ctx.CompilationProvider, (hostCtx, c) => { hostCtx.AddOutput("a", "value"); hostCtx.AddOutput("b", "value2"); }); });
4704
var generator = new PipelineCallbackGenerator((ctx) => { ctx.
RegisterHostOutput
(ctx.CompilationProvider, (hostCtx, c) => { hostCtx.AddOutput("a", "value"); hostCtx.AddOutput("a", "value2"); }); });
4721
var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.
RegisterHostOutput
(ctx.CompilationProvider, (hostCtx, c) => { hostCtx.AddOutput("gen1", "value1"); }); });
4722
var generator2 = new PipelineCallbackGenerator2((ctx) => { ctx.
RegisterHostOutput
(ctx.CompilationProvider, (hostCtx, c) => { hostCtx.AddOutput("gen2", "value2"); }); });
4739
var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.
RegisterHostOutput
(ctx.CompilationProvider, (hostCtx, c) => { hostCtx.AddOutput("gen", "value1"); }); });
4740
var generator2 = new PipelineCallbackGenerator2((ctx) => { ctx.
RegisterHostOutput
(ctx.CompilationProvider, (hostCtx, c) => { hostCtx.AddOutput("gen", "value2"); }); });
4757
var generator = new PipelineCallbackGenerator((ctx) => { ctx.
RegisterHostOutput
(ctx.CompilationProvider, (hostCtx, c) => { throw new InvalidOperationException("failed"); }); });