clang-tools 20.0.0git
Public Attributes | List of all members
clang::clangd::SemanticTokensOrDelta Struct Reference

This models LSP SemanticTokensDelta | SemanticTokens, which is the result of textDocument/semanticTokens/full/delta. More...

#include <Protocol.h>

Public Attributes

std::string resultId
 
std::optional< std::vector< SemanticTokensEdit > > edits
 Set if we computed edits relative to a previous set of tokens.
 
std::optional< std::vector< SemanticToken > > tokens
 Set if we computed a fresh set of tokens.
 

Detailed Description

This models LSP SemanticTokensDelta | SemanticTokens, which is the result of textDocument/semanticTokens/full/delta.

Definition at line 1863 of file Protocol.h.

Member Data Documentation

◆ edits

std::optional<std::vector<SemanticTokensEdit> > clang::clangd::SemanticTokensOrDelta::edits

Set if we computed edits relative to a previous set of tokens.

Definition at line 1866 of file Protocol.h.

Referenced by clang::clangd::toJSON().

◆ resultId

std::string clang::clangd::SemanticTokensOrDelta::resultId

Definition at line 1864 of file Protocol.h.

Referenced by clang::clangd::toJSON().

◆ tokens

std::optional<std::vector<SemanticToken> > clang::clangd::SemanticTokensOrDelta::tokens

Set if we computed a fresh set of tokens.

Definition at line 1868 of file Protocol.h.

Referenced by clang::clangd::toJSON().


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