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

#include <Protocol.h>

Collaboration diagram for lspserver::ASTParams:
[legend]

Public Attributes

TextDocumentIdentifier textDocument
 The text document.
 
std::optional< Rangerange
 

Detailed Description

Keys starting with an underscore(_) represent leaves, e.g. _total or _self for memory usage of whole subtree or only that specific node in bytes. All other keys represents children. An example: { "_self": 0, "_total": 8, "child1": { "_self": 4, "_total": 4, } "child2": { "_self": 2, "_total": 4, "child_deep": { "_self": 2, "_total": 2, } } } Payload for textDocument/ast request. This request is a clangd extension.

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

Member Data Documentation

◆ range

std::optional<Range> lspserver::ASTParams::range

The position of the node to be dumped. The highest-level node that entirely contains the range will be returned. If no range is given, the root translation unit node will be returned.

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

Referenced by lspserver::fromJSON().

◆ textDocument

TextDocumentIdentifier lspserver::ASTParams::textDocument

The text document.

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

Referenced by lspserver::fromJSON().


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