Share via


SyntaxNodeOrToken.AsNode Method

Definition

Returns the underlying node if this SyntaxNodeOrToken is wrapping a node.

public:
 Microsoft::CodeAnalysis::SyntaxNode ^ AsNode();
public Microsoft.CodeAnalysis.SyntaxNode AsNode ();
public Microsoft.CodeAnalysis.SyntaxNode? AsNode ();
member this.AsNode : unit -> Microsoft.CodeAnalysis.SyntaxNode
Public Function AsNode () As SyntaxNode

Returns

The underlying node if this SyntaxNodeOrToken is wrapping a node.

Applies to