1 instantiation of HostOutputProductionContext
Microsoft.CodeAnalysis (1)
SourceGeneration\Nodes\HostOutputNode.cs (1)
57
HostOutputProductionContext context = new
HostOutputProductionContext
(output, cancellationToken);
9 references to HostOutputProductionContext
Microsoft.CodeAnalysis (9)
SourceGeneration\IncrementalContexts.cs (3)
81
public void RegisterHostOutput<TSource>(IncrementalValueProvider<TSource> source, Action<
HostOutputProductionContext
, TSource> action) => source.Node.RegisterOutput(new HostOutputNode<TSource>(source.Node, action.WrapUserAction(CatchAnalyzerExceptions)));
84
public void RegisterHostOutput<TSource>(IncrementalValuesProvider<TSource> source, Action<
HostOutputProductionContext
, TSource> action) => source.Node.RegisterOutput(new HostOutputNode<TSource>(source.Node, action.WrapUserAction(CatchAnalyzerExceptions)));
225
/// 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)
23
private readonly Action<
HostOutputProductionContext
, TInput, CancellationToken> _action;
25
public HostOutputNode(IIncrementalGeneratorNode<TInput> source, Action<
HostOutputProductionContext
, TInput, CancellationToken> action)
57
HostOutputProductionContext
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)"/>.