GenericSymbolWithSyntax Constructors - monkey0506/Monkeymoto.GeneratorUtils.GenericSymbolReferenceTree GitHub Wiki

GenericSymbolWithSyntax Constructors

Definition

Initializes a new instance of the GenericSymbolWithSyntax class with the specified symbol and syntax.

Overloads

GenericSymbolWithSyntax(IMethodSymbol, IdentifierNameSyntax)
GenericSymbolWithSyntax(IMethodSymbol, InvocationExpressionSyntax)
GenericSymbolWithSyntax(INamedTypeSymbol, GenericNameSyntax)

GenericSymbolWithSyntax(IMethodSymbol, IdentifierNameSyntax)

public GenericSymbolWithSyntax(IMethodSymbol methodSymbol, IdentifierNameSyntax identifierNameSyntax)

Parameters

methodSymbol IMethodSymbol
The symbol to associate with identifierNameSyntax.

identifierNameSyntax IdentifierNameSyntax
The syntax to associate with methodSymbol.

Exceptions

ArgumentNullException
methodSymbol or identifierNameSyntax was null.

ArgumentException
methodSymbol was not a generic method.

GenericSymbolWithSyntax(IMethodSymbol, InvocationExpressionSyntax)

public GenericSymbolWithSyntax(IMethodSymbol methodSymbol, InvocationExpressionSyntax invocationExpressionSyntax)

Parameters

methodSymbol IMethodSymbol
The symbol to associate with invocationExpressionSyntax.

invocationExpressionSyntax InvocationExpressionSyntax
The syntax to associate with methodSymbol.

Exceptions

ArgumentNullException
methodSymbol or invocationExpressionSyntax was null.

ArgumentException
methodSymbol was not a generic method.

GenericSymbolWithSyntax(INamedTypeSymbol, GenericNameSyntax)

public GenericSymbolWithSyntax(INamedTypeSymbol namedTypeSymbol, GenericNameSyntax genericNameSyntax)

Parameters

namedTypeSymbol INamedTypeSymbol
The symbol to associate with genericNameSyntax.

genericNameSyntax GenericNameSyntax
The syntax to associate with namedTypeSymbol.

Exceptions

ArgumentNullException
namedTypeSymbol or genericNameSyntax was null.

ArgumentException
namedTypeSymbol was not a generic named type.

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