Gets a new instance representing the given syntax node and its associated generic symbol.
public static GenericSymbolWithSyntax? FromSyntaxNode(SyntaxNode syntaxNode, SemanticModel semanticModel, CancellationToken cancellationToken)
syntaxNode SyntaxNode The syntax node to associate with a generic symbol
syntaxNode
semanticModel SemanticModel The SemanticModel used to get a symbolic reference to syntaxNode.
semanticModel
cancellationToken CancellationToken The CancellationToken that will be observed while retrieving symbolic info from the semanticModel.
cancellationToken
GenericSymbolWithSyntax?
null, if semanticModel does not resolve syntaxNode to a generic symbol or the symbol is the original symbol definition; otherwise, the new instance.
null
There was an error while loading. Please reload this page.