GenericSymbolWithSyntaxTree - monkey0506/Monkeymoto.GeneratorUtils.GenericSymbolReferenceTree GitHub Wiki

GenericSymbolWithSyntaxTree Class

Definition

Represents a collection of closed generic symbols for use with an incremental source generator.

public sealed class GenericSymbolWithSyntaxTree

Methods

FromIncrementalGeneratorInitializationContext(IncrementalGeneratorInitializationContext) Creates a new tree from an incremental generator initialization context.
GetBranch(GenericSymbolWithSyntax, CancellationToken) Returns a collection which represents the closed generic symbols associated with the given symbol and syntax node.
GetBranchesBySymbol(ISymbol, CancellationToken) Returns a collection of all branches in the tree that match the given symbol.