GenericSymbolWithSyntaxTree.GetBranch - monkey0506/Monkeymoto.GeneratorUtils.GenericSymbolReferenceTree GitHub Wiki

GenericSymbolWithSyntaxTree.GetBranch(GenericSymbolWithSyntax, CancellationToken) Method

Definition

Returns a collection which represents the closed generic symbols associated with the given symbol and syntax node.

public IEnumerable<GenericSymbolWithSyntax> GetBranch(GenericSymbolWithSyntax symbolWithSyntax, CancellationToken cancellationToken)

Parameters

symbolWithSyntax GenericSymbolWithSyntax
The generic symbol and syntax node to find in the tree.

cancellationToken CancellationToken
The CancellationToken that will be observed while searching the tree.

Returns

IEnumerable<GenericSymbolWithSyntax>

A collection representing the closed generic symbols associated with the given symbol after type substitution. Each item in the returned collection represents the same syntax node as symbolWithSyntax.

⚠️ **GitHub.com Fallback** ⚠️