IncrementalGeneratorOutputKind Enumeration

Definition

Stellt die verschiedenen Ausgabetypen eines IIncrementalGenerator.

Diese Enumeration unterstützt eine bitweise Kombination ihrer Memberwerte.

[System.Flags]
public enum IncrementalGeneratorOutputKind
[<System.Flags>]
type IncrementalGeneratorOutputKind = 
Public Enum IncrementalGeneratorOutputKind
Vererbung
IncrementalGeneratorOutputKind
Attribute

Felder

Name Wert Beschreibung
None 0

Stellt keine Ausgabetypen dar. Kann beim Erstellen eines Treibers verwendet werden, um anzugeben, dass keine Ausgaben deaktiviert werden sollen.

Source 1

Eine normale Quellausgabe, die über RegisterSourceOutput<TSource>(IncrementalValueProvider<TSource>, Action<SourceProductionContext,TSource>) oder RegisterSourceOutput<TSource>(IncrementalValuesProvider<TSource>, Action<SourceProductionContext,TSource>)

PostInit 2

Eine Postinitialisierungsausgabe, die für spätere Phasen sichtbar ist, die über RegisterPostInitializationOutput(Action<IncrementalGeneratorPostInitializationContext>)

Implementation 4

Eine Nur-Implementierungs-Quellausgabe, die über RegisterImplementationSourceOutput<TSource>(IncrementalValueProvider<TSource>, Action<SourceProductionContext,TSource>) oder RegisterImplementationSourceOutput<TSource>(IncrementalValuesProvider<TSource>, Action<SourceProductionContext,TSource>)

Host 8

Eine hostspezifische Ausgabe, die über RegisterHostOutput<TSource>(IncrementalValueProvider<TSource>, Action<HostOutputProductionContext,TSource>) oder RegisterHostOutput<TSource>(IncrementalValuesProvider<TSource>, Action<HostOutputProductionContext,TSource>)

PreCompilation 16

Eine Vorabkompilierungsquelle, die über RegisterPreCompilationSourceOutput<TSource>(IncrementalValueProvider<TSource>, Action<PreCompilationSourceProductionContext,TSource>) oder RegisterPreCompilationSourceOutput<TSource>(IncrementalValuesProvider<TSource>, Action<PreCompilationSourceProductionContext,TSource>). Die Quelle wird der anfänglichen Kompilierung hinzugefügt, bevor kompilierungsabhängige Phasen ausgeführt werden.

Hinweise

Kann beim Erstellen einer GeneratorDriver selektiven Deaktivierungen von Ausgaben als Bitfeld übergeben werden.

Gilt für: