DocumentSymbol
Object Hierarchy:
Description:
[ Compact ( opaque = true ) ]
[ CCode ( ref_function = "lsp_document_symbol_ref" , unref_function = "lsp_document_symbol_unref" ) ]
public class DocumentSymbol
Represents programming constructs like variables, classes, interfaces, etc. that appear in a document. Document symbols can be
hierarchical.
Content:
Properties:
- public DocumentSymbol[] children { get; set; }
- public string? detail { get; set; }
More detail for this symbol, e.g. the signature of a function.
- public SymbolKind kind { get; set; }
The kind of this symbol.
- public string name { get; set; }
The name of this symbol.
- public Range range { get; set; }
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.
- public Range selection_range { get; set; }
The range that should be selected and revealed when this symbol is
being picked, e.g. the name of a function. Must be contained by the range
.
- public SymbolTag tags { get; set; }
Tags for this symbol.
Creation methods:
Methods: