TokenOrSyntax struct
#include <slang/syntax/SyntaxNode.h>
A token or a syntax node.
Base classes
- struct ConstTokenOrSyntax
- A token or a constant syntax node.
Public functions
- SyntaxNode* node() const
- Gets access to the object as a syntax node (asserting if it's not actually a node).
-
parsing::
Token* tokenPtr() - Gets a mutable pointer to the stored token (asserting if it's not actually a token).