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

#include <Protocol.h>

Collaboration diagram for lspserver::SymbolInformation:
[legend]

Public Attributes

std::string name
 The name of this symbol.
 
SymbolKind kind
 The kind of this symbol.
 
Location location
 The location of this symbol.
 
std::string containerName
 The name of the symbol containing this symbol.
 
std::optional< floatscore
 

Detailed Description

Represents information about programming constructs like variables, classes, interfaces etc.

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

Member Data Documentation

◆ containerName

std::string lspserver::SymbolInformation::containerName

The name of the symbol containing this symbol.

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

Referenced by lspserver::toJSON().

◆ kind

SymbolKind lspserver::SymbolInformation::kind

The kind of this symbol.

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

Referenced by lspserver::toJSON().

◆ location

Location lspserver::SymbolInformation::location

The location of this symbol.

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

Referenced by lspserver::toJSON().

◆ name

std::string lspserver::SymbolInformation::name

The name of this symbol.

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

Referenced by lspserver::toJSON().

◆ score

std::optional<float> lspserver::SymbolInformation::score

The score that clangd calculates to rank the returned symbols. This excludes the fuzzy-matching score between name and the query. (Specifically, the last ::-separated component). This can be used to re-rank results as the user types, using client-side fuzzy-matching (that score should be multiplied with this one). This is a clangd extension, set only for workspace/symbol responses.

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

Referenced by lspserver::toJSON().


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