Method

LspDocumentSymbolget_range

Declaration

void
lsp_document_symbol_get_range (
  LspDocumentSymbol* self,
  LspRange* result
)

Description

Gets the value of range.

The range enclosing this symbol not including leading/trailing whitespace but everything else like comments. This information is typically used to determine if the user’s cursor is inside the symbol to reveal in the symbol sidebar or breadcrumb.

Parameters

result

Type: LspRange

The value of range.

The argument will be set by the function.
The returned data is owned by the instance.