clang-tools  14.0.0git
Public Attributes | List of all members
clang::clangd::SemanticToken Struct Reference

Specifies a single semantic token in the document. More...

#include <Protocol.h>

Collaboration diagram for clang::clangd::SemanticToken:
Collaboration graph
[legend]

Public Attributes

unsigned deltaLine = 0
 token line number, relative to the previous token More...
 
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) More...
 
unsigned length = 0
 the length of the token. A token cannot be multiline More...
 
unsigned tokenType = 0
 will be looked up in SemanticTokensLegend.tokenTypes More...
 
unsigned tokenModifiers = 0
 each set bit will be looked up in SemanticTokensLegend.tokenModifiers More...
 

Detailed Description

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 1577 of file Protocol.h.

Member Data Documentation

◆ deltaLine

unsigned clang::clangd::SemanticToken::deltaLine = 0

token line number, relative to the previous token

Definition at line 1579 of file Protocol.h.

◆ deltaStart

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 1582 of file Protocol.h.

◆ length

unsigned clang::clangd::SemanticToken::length = 0

the length of the token. A token cannot be multiline

Definition at line 1584 of file Protocol.h.

◆ tokenModifiers

unsigned clang::clangd::SemanticToken::tokenModifiers = 0

each set bit will be looked up in SemanticTokensLegend.tokenModifiers

Definition at line 1588 of file Protocol.h.

◆ tokenType

unsigned clang::clangd::SemanticToken::tokenType = 0

will be looked up in SemanticTokensLegend.tokenTypes

Definition at line 1586 of file Protocol.h.


The documentation for this struct was generated from the following file: