Delen via


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

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>)

Host 8

A host specific output, registered via RegisterHostOutput<TSource>(IncrementalValueProvider<TSource>, Action<HostOutputProductionContext,TSource>) or RegisterHostOutput<TSource>(IncrementalValuesProvider<TSource>, Action<HostOutputProductionContext,TSource>)

Remarks

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

Applies to