IncrementalGeneratorInitializationContext.RegisterSourceOutput Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| RegisterSourceOutput<TSource>(IncrementalValueProvider<TSource>, Action<SourceProductionContext,TSource>) |
Registers an output node that will produce source code to be added to the compilation. The provided action will be invoked with the value from the provider whenever it changes. |
| RegisterSourceOutput<TSource>(IncrementalValuesProvider<TSource>, Action<SourceProductionContext,TSource>) |
Registers an output node that will produce source code to be added to the compilation. The provided action will be invoked once for each value from the provider whenever they change. |
RegisterSourceOutput<TSource>(IncrementalValueProvider<TSource>, Action<SourceProductionContext,TSource>)
- Source:
- IncrementalContexts.cs
- Source:
- IncrementalContexts.cs
- Source:
- IncrementalContexts.cs
- Source:
- IncrementalContexts.cs
- Source:
- IncrementalContexts.cs
- Source:
- IncrementalContexts.cs
- Source:
- IncrementalContexts.cs
- Source:
- IncrementalContexts.cs
- Source:
- IncrementalContexts.cs
- Source:
- IncrementalContexts.cs
- Source:
- IncrementalContexts.cs
- Source:
- IncrementalContexts.cs
- Source:
- IncrementalContexts.cs
- Source:
- IncrementalContexts.cs
- Source:
- IncrementalContexts.cs
Registers an output node that will produce source code to be added to the compilation. The provided action will be invoked with the value from the provider whenever it changes.
public void RegisterSourceOutput<TSource>(Microsoft.CodeAnalysis.IncrementalValueProvider<TSource> source, Action<Microsoft.CodeAnalysis.SourceProductionContext,TSource> action);
member this.RegisterSourceOutput : Microsoft.CodeAnalysis.IncrementalValueProvider<'Source> * Action<Microsoft.CodeAnalysis.SourceProductionContext, 'Source> -> unit
Public Sub RegisterSourceOutput(Of TSource) (source As IncrementalValueProvider(Of TSource), action As Action(Of SourceProductionContext, TSource))
Type Parameters
- TSource
The type of the value provided by the source provider
Parameters
- source
- IncrementalValueProvider<TSource>
An IncrementalValueProvider<TValue> that provides the input value
- action
- Action<SourceProductionContext,TSource>
An action that receives a SourceProductionContext and the input value, and can add source files or report diagnostics
Applies to
RegisterSourceOutput<TSource>(IncrementalValuesProvider<TSource>, Action<SourceProductionContext,TSource>)
- Source:
- IncrementalContexts.cs
- Source:
- IncrementalContexts.cs
- Source:
- IncrementalContexts.cs
- Source:
- IncrementalContexts.cs
- Source:
- IncrementalContexts.cs
- Source:
- IncrementalContexts.cs
- Source:
- IncrementalContexts.cs
- Source:
- IncrementalContexts.cs
- Source:
- IncrementalContexts.cs
- Source:
- IncrementalContexts.cs
- Source:
- IncrementalContexts.cs
- Source:
- IncrementalContexts.cs
- Source:
- IncrementalContexts.cs
- Source:
- IncrementalContexts.cs
- Source:
- IncrementalContexts.cs
Registers an output node that will produce source code to be added to the compilation. The provided action will be invoked once for each value from the provider whenever they change.
public void RegisterSourceOutput<TSource>(Microsoft.CodeAnalysis.IncrementalValuesProvider<TSource> source, Action<Microsoft.CodeAnalysis.SourceProductionContext,TSource> action);
member this.RegisterSourceOutput : Microsoft.CodeAnalysis.IncrementalValuesProvider<'Source> * Action<Microsoft.CodeAnalysis.SourceProductionContext, 'Source> -> unit
Public Sub RegisterSourceOutput(Of TSource) (source As IncrementalValuesProvider(Of TSource), action As Action(Of SourceProductionContext, TSource))
Type Parameters
- TSource
The type of each value provided by the source provider
Parameters
- source
- IncrementalValuesProvider<TSource>
An IncrementalValuesProvider<TValues> that provides input values
- action
- Action<SourceProductionContext,TSource>
An action that receives a SourceProductionContext and an input value, and can add source files or report diagnostics