IncrementalGeneratorInitializationContext.RegisterPreCompilationSourceOutput Methode

Definition

Überlädt

Name Beschreibung
RegisterPreCompilationSourceOutput<TSource>(IncrementalValueProvider<TSource>, Action<PreCompilationSourceProductionContext,TSource>)

Registriert eine Quellausgabe, die ausgeführt wird, bevor die Kompilierung verfügbar ist. Die produzierte Quelle wird der anfänglichen Kompilierung hinzugefügt, sodass sie für nachfolgende Phasen und andere Generatoren sichtbar wird.

RegisterPreCompilationSourceOutput<TSource>(IncrementalValuesProvider<TSource>, Action<PreCompilationSourceProductionContext,TSource>)

Registriert eine Quellausgabe, die ausgeführt wird, bevor die Kompilierung verfügbar ist. Die produzierte Quelle wird der anfänglichen Kompilierung hinzugefügt, sodass sie für nachfolgende Phasen und andere Generatoren sichtbar wird.

RegisterPreCompilationSourceOutput<TSource>(IncrementalValueProvider<TSource>, Action<PreCompilationSourceProductionContext,TSource>)

Quelle:
IncrementalContexts.cs

Registriert eine Quellausgabe, die ausgeführt wird, bevor die Kompilierung verfügbar ist. Die produzierte Quelle wird der anfänglichen Kompilierung hinzugefügt, sodass sie für nachfolgende Phasen und andere Generatoren sichtbar wird.

public void RegisterPreCompilationSourceOutput<TSource>(Microsoft.CodeAnalysis.IncrementalValueProvider<TSource> source, Action<Microsoft.CodeAnalysis.PreCompilationSourceProductionContext,TSource> action);
member this.RegisterPreCompilationSourceOutput : Microsoft.CodeAnalysis.IncrementalValueProvider<'Source> * Action<Microsoft.CodeAnalysis.PreCompilationSourceProductionContext, 'Source> -> unit
Public Sub RegisterPreCompilationSourceOutput(Of TSource) (source As IncrementalValueProvider(Of TSource), action As Action(Of PreCompilationSourceProductionContext, TSource))

Typparameter

TSource

Der Typ des vom Quellanbieter bereitgestellten Werts

Parameter

source
IncrementalValueProvider<TSource>

Ein IncrementalValueProvider<TValue> Wert, der den Eingabewert bereitstellt

action
Action<PreCompilationSourceProductionContext,TSource>

Eine Aktion, die einen PreCompilationSourceProductionContext und den Eingabewert empfängt und Quelldateien hinzufügen kann

Hinweise

Der Quellwertanbieter darf nicht von Kompilierungs- oder Syntaxknoteneingaben abhängen. Beim Versuch, während dieser Phase auf die Kompilierungs- oder Syntaxstrukturen zuzugreifen, wird ein InvalidOperationException.

Gilt für:

RegisterPreCompilationSourceOutput<TSource>(IncrementalValuesProvider<TSource>, Action<PreCompilationSourceProductionContext,TSource>)

Quelle:
IncrementalContexts.cs

Registriert eine Quellausgabe, die ausgeführt wird, bevor die Kompilierung verfügbar ist. Die produzierte Quelle wird der anfänglichen Kompilierung hinzugefügt, sodass sie für nachfolgende Phasen und andere Generatoren sichtbar wird.

public void RegisterPreCompilationSourceOutput<TSource>(Microsoft.CodeAnalysis.IncrementalValuesProvider<TSource> source, Action<Microsoft.CodeAnalysis.PreCompilationSourceProductionContext,TSource> action);
member this.RegisterPreCompilationSourceOutput : Microsoft.CodeAnalysis.IncrementalValuesProvider<'Source> * Action<Microsoft.CodeAnalysis.PreCompilationSourceProductionContext, 'Source> -> unit
Public Sub RegisterPreCompilationSourceOutput(Of TSource) (source As IncrementalValuesProvider(Of TSource), action As Action(Of PreCompilationSourceProductionContext, TSource))

Typparameter

TSource

Der Typ der einzelnen Werte, die vom Quellanbieter bereitgestellt werden

Parameter

source
IncrementalValuesProvider<TSource>

Ein IncrementalValuesProvider<TValues> Wert, der Eingabewerte bereitstellt

action
Action<PreCompilationSourceProductionContext,TSource>

Eine Aktion, die einen PreCompilationSourceProductionContext und einen Eingabewert empfängt und Quelldateien hinzufügen kann

Hinweise

Der Quellwertanbieter darf nicht von Kompilierungs- oder Syntaxknoteneingaben abhängen. Beim Versuch, während dieser Phase auf die Kompilierungs- oder Syntaxstrukturen zuzugreifen, wird ein InvalidOperationException.

Gilt für: