IncrementalGeneratorOutputKind Enum
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.
Represents the various output kinds of an IIncrementalGenerator.
This enumeration supports a bitwise combination of its member values.
[System.Flags]
public enum IncrementalGeneratorOutputKind
[<System.Flags>]
type IncrementalGeneratorOutputKind =
Public Enum IncrementalGeneratorOutputKind
- Inheritance
-
IncrementalGeneratorOutputKind
- Attributes
Fields
Name | Value | Description |
---|---|---|
None | 0 | Represents no output kinds. Can be used when creating a driver to indicate that no outputs should be disabled. |
Source | 1 | A regular source output, registered via RegisterSourceOutput<TSource>(IncrementalValueProvider<TSource>, Action<SourceProductionContext,TSource>) or RegisterSourceOutput<TSource>(IncrementalValuesProvider<TSource>, Action<SourceProductionContext,TSource>) |
PostInit | 2 | A post-initialization output, which will be visible to later phases, registered via RegisterPostInitializationOutput(Action<IncrementalGeneratorPostInitializationContext>) |
Implementation | 4 | An Implementation only source output, registered via RegisterImplementationSourceOutput<TSource>(IncrementalValueProvider<TSource>, Action<SourceProductionContext,TSource>) or RegisterImplementationSourceOutput<TSource>(IncrementalValuesProvider<TSource>, Action<SourceProductionContext,TSource>) |
Remarks
Can be passed as a bit field when creating a GeneratorDriver to selectively disable outputs.