|
clang-tools 24.0.0git
|
Specifies a single semantic token in the document. More...
#include <Protocol.h>
Public Attributes | |
| unsigned | deltaLine = 0 |
| token line number, relative to the previous token | |
| unsigned | deltaStart = 0 |
| token start character, relative to the previous token (relative to 0 or the previous token's start if they are on the same line) | |
| unsigned | length = 0 |
| the length of the token. A token cannot be multiline | |
| unsigned | tokenType = 0 |
| will be looked up in SemanticTokensLegend.tokenTypes | |
| unsigned | tokenModifiers = 0 |
| each set bit will be looked up in SemanticTokensLegend.tokenModifiers | |
Specifies a single semantic token in the document.
This struct is not part of LSP, which just encodes lists of tokens as arrays of numbers directly.
Definition at line 1899 of file Protocol.h.
| unsigned clang::clangd::SemanticToken::deltaLine = 0 |
token line number, relative to the previous token
Definition at line 1901 of file Protocol.h.
Referenced by clang::clangd::operator==(), and clang::clangd::toSemanticTokens().
| unsigned clang::clangd::SemanticToken::deltaStart = 0 |
token start character, relative to the previous token (relative to 0 or the previous token's start if they are on the same line)
Definition at line 1904 of file Protocol.h.
Referenced by clang::clangd::operator==(), and clang::clangd::toSemanticTokens().
| unsigned clang::clangd::SemanticToken::length = 0 |
the length of the token. A token cannot be multiline
Definition at line 1906 of file Protocol.h.
Referenced by clang::clangd::operator==(), and clang::clangd::toSemanticTokens().
| unsigned clang::clangd::SemanticToken::tokenModifiers = 0 |
each set bit will be looked up in SemanticTokensLegend.tokenModifiers
Definition at line 1910 of file Protocol.h.
Referenced by clang::clangd::operator==(), and clang::clangd::toSemanticTokens().
| unsigned clang::clangd::SemanticToken::tokenType = 0 |
will be looked up in SemanticTokensLegend.tokenTypes
Definition at line 1908 of file Protocol.h.
Referenced by clang::clangd::operator==(), and clang::clangd::toSemanticTokens().