SyntaxValueProvider Struct
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.
Allows a user to create Syntax based input nodes for incremental generation
public readonly struct SyntaxValueProvider
type SyntaxValueProvider = struct
Public Structure SyntaxValueProvider
- Inheritance
-
SyntaxValueProvider
Methods
CreateSyntaxProvider<T>(Func<SyntaxNode,CancellationToken,Boolean>, Func<GeneratorSyntaxContext,CancellationToken,T>) |
Creates an IncrementalValueProvider<TValue> that can provide a transform over SyntaxNodes |
ForAttributeWithMetadataName<T>(String, Func<SyntaxNode,CancellationToken,Boolean>, Func<GeneratorAttributeSyntaxContext,CancellationToken,T>) |
Creates an IncrementalValuesProvider<TValues> that can provide a transform over all SyntaxNodes if that node has an attribute on it that binds to a INamedTypeSymbol with the
same fully-qualified metadata as the provided |
Applies to
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla