IncrementalGeneratorOutputKind Enum

Definition

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

Implementation 4

An Implementation only source output, registered via RegisterImplementationSourceOutput<TSource>(IncrementalValueProvider<TSource>, Action<SourceProductionContext,TSource>) or RegisterImplementationSourceOutput<TSource>(IncrementalValuesProvider<TSource>, Action<SourceProductionContext,TSource>)

None 0

Represents no output kinds. Can be used when creating a driver to indicate that no outputs should be disabled.

PostInit 2

A post-initialization output, which will be visible to later phases, registered via RegisterPostInitializationOutput(Action<IncrementalGeneratorPostInitializationContext>)

Source 1

A regular source output, registered via RegisterSourceOutput<TSource>(IncrementalValueProvider<TSource>, Action<SourceProductionContext,TSource>) or RegisterSourceOutput<TSource>(IncrementalValuesProvider<TSource>, Action<SourceProductionContext,TSource>)

Remarks

Can be passed as a bit field when creating a GeneratorDriver to selectively disable outputs.

Applies to