nixd
Loading...
Searching...
No Matches
Public Attributes | List of all members
lspserver::SemanticToken Struct Reference

#include <Protocol.h>

Public Attributes

unsigned deltaLine = 0
 token line number, relative to the previous token
 
unsigned deltaStart = 0
 
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
 

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 1680 of file lspserver/include/lspserver/Protocol.h.

Member Data Documentation

◆ deltaLine

unsigned lspserver::SemanticToken::deltaLine = 0

token line number, relative to the previous token

Definition at line 1682 of file lspserver/include/lspserver/Protocol.h.

Referenced by lspserver::operator==().

◆ deltaStart

unsigned lspserver::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 1685 of file lspserver/include/lspserver/Protocol.h.

Referenced by lspserver::operator==().

◆ length

unsigned lspserver::SemanticToken::length = 0

the length of the token. A token cannot be multiline

Definition at line 1687 of file lspserver/include/lspserver/Protocol.h.

Referenced by lspserver::operator==().

◆ tokenModifiers

unsigned lspserver::SemanticToken::tokenModifiers = 0

each set bit will be looked up in SemanticTokensLegend.tokenModifiers

Definition at line 1691 of file lspserver/include/lspserver/Protocol.h.

Referenced by lspserver::operator==().

◆ tokenType

unsigned lspserver::SemanticToken::tokenType = 0

will be looked up in SemanticTokensLegend.tokenTypes

Definition at line 1689 of file lspserver/include/lspserver/Protocol.h.

Referenced by lspserver::operator==().


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