GenericSymbolWithSyntax - monkey0506/Monkeymoto.GeneratorUtils.GenericSymbolReferenceTree GitHub Wiki

GenericSymbolWithSyntax Struct

Definition

Represents a generic ISymbol and an associated SyntaxNode.

public readonly struct GenericSymbolWithSyntax

Constructors

GenericSymbolWithSyntax(IMethodSymbol, IdentifierNameSyntax) Initializes a new instance of the GenericSymbolWithSyntax class with the specified symbol and syntax.
GenericSymbolWithSyntax(IMethodSymbol, InvocationExpressionSyntax) Initializes a new instance of the GenericSymbolWithSyntax class with the specified symbol and syntax.
GenericSymbolWithSyntax(INamedTypeSymbol, GenericNameSyntax) Initializes a new instance of the GenericSymbolWithSyntax class with the specified symbol and syntax.

Fields

IsClosedTypeOrMethod Represents whether Symbol is a closed generic type or closed generic method.
Node Represents the SyntaxNode associated with Symbol.
Symbol Represents the ISymbol associated with Node.
TypeArguments Represents the type arguments for this Symbol.

Methods

FromSyntaxNode(SyntaxNode, SemanticModel, CancellationToken) Gets a new instance representing the given syntax node and its associated generic symbol.