1 instantiation of HostOutputProductionContext
Microsoft.CodeAnalysis (1)
SourceGeneration\Nodes\HostOutputNode.cs (1)
57HostOutputProductionContext context = new HostOutputProductionContext(output, cancellationToken);
11 references to HostOutputProductionContext
Microsoft.CodeAnalysis (11)
SourceGeneration\IncrementalContexts.cs (5)
149/// <param name="action">An action that receives a <see cref="HostOutputProductionContext"/> and the input value, and can add host-specific outputs</param> 151public void RegisterHostOutput<TSource>(IncrementalValueProvider<TSource> source, Action<HostOutputProductionContext, TSource> action) => source.Node.RegisterOutput(new HostOutputNode<TSource>(source.Node, action.WrapUserAction(CatchAnalyzerExceptions))); 162/// <param name="action">An action that receives a <see cref="HostOutputProductionContext"/> and an input value, and can add host-specific outputs</param> 164public void RegisterHostOutput<TSource>(IncrementalValuesProvider<TSource> source, Action<HostOutputProductionContext, TSource> action) => source.Node.RegisterOutput(new HostOutputNode<TSource>(source.Node, action.WrapUserAction(CatchAnalyzerExceptions))); 305/// Context passed to an incremental generator when it has registered an output via <see cref="IncrementalGeneratorInitializationContext.RegisterHostOutput{TSource}(IncrementalValuesProvider{TSource}, Action{HostOutputProductionContext, TSource})"/>
SourceGeneration\Nodes\HostOutputNode.cs (3)
23private readonly Action<HostOutputProductionContext, TInput, CancellationToken> _action; 25public HostOutputNode(IIncrementalGeneratorNode<TInput> source, Action<HostOutputProductionContext, TInput, CancellationToken> action) 57HostOutputProductionContext context = new HostOutputProductionContext(output, cancellationToken);
SourceGeneration\Nodes\IIncrementalGeneratorOutputNode.cs (2)
54/// A host specific output, registered via <see cref="IncrementalGeneratorInitializationContext.RegisterHostOutput{TSource}(IncrementalValueProvider{TSource}, Action{HostOutputProductionContext, TSource})"/> 55/// or <see cref="IncrementalGeneratorInitializationContext.RegisterHostOutput{TSource}(IncrementalValuesProvider{TSource}, Action{HostOutputProductionContext, TSource})"/>
SourceGeneration\RunResults.cs (1)
125/// A collection of items added via <see cref="HostOutputProductionContext.AddOutput(string, object)"/>.