|
clang 22.0.0git
|
Simple structure to hold information for one token from the parser. More...
Public Types | |
| enum | TokenKind { TK_Eof , TK_NewLine , TK_OpenParen , TK_CloseParen , TK_Comma , TK_Period , TK_Literal , TK_Ident , TK_InvalidChar , TK_Error , TK_CodeCompletion } |
| Different possible tokens. More... | |
Public Member Functions | |
| TokenInfo ()=default | |
Public Attributes | |
| StringRef | Text |
| TokenKind | Kind = TK_Eof |
| SourceRange | Range |
| VariantValue | Value |
Static Public Attributes | |
| static const char *const | ID_Bind = "bind" |
| Some known identifiers. | |
| static const char *const | ID_With = "with" |
Simple structure to hold information for one token from the parser.
Definition at line 36 of file Parser.cpp.
Different possible tokens.
| Enumerator | |
|---|---|
| TK_Eof | |
| TK_NewLine | |
| TK_OpenParen | |
| TK_CloseParen | |
| TK_Comma | |
| TK_Period | |
| TK_Literal | |
| TK_Ident | |
| TK_InvalidChar | |
| TK_Error | |
| TK_CodeCompletion | |
Definition at line 38 of file Parser.cpp.
|
default |
|
static |
Some known identifiers.
Definition at line 53 of file Parser.cpp.
|
static |
Definition at line 54 of file Parser.cpp.
Definition at line 59 of file Parser.cpp.
| SourceRange clang::ast_matchers::dynamic::Parser::TokenInfo::Range |
Definition at line 60 of file Parser.cpp.
| StringRef clang::ast_matchers::dynamic::Parser::TokenInfo::Text |
Definition at line 58 of file Parser.cpp.
| VariantValue clang::ast_matchers::dynamic::Parser::TokenInfo::Value |
Definition at line 61 of file Parser.cpp.