pub struct SymbolInformation {
pub container_name: Option<String>,
pub deprecated: Option<bool>,
pub kind: SymbolKind,
pub location: Location,
pub name: String,
pub tags: Option<Vec<SymbolTag>>,
}Expand description
Represents information about programming constructs like variables, classes, interfaces etc.
Fields§
§container_name: Option<String>The name of the symbol containing this symbol. This information is for user interface purposes (e.g. to render a qualifier in the user interface if necessary). It can’t be used to re-infer a hierarchy for the document symbols.
deprecated: Option<bool>Indicates if this symbol is deprecated.
kind: SymbolKindThe kind of this symbol.
location: LocationThe location of this symbol. The location’s range is used by a tool to reveal the location in the editor. If the symbol is selected in the tool the range’s start information is used to position the cursor. So the range usually spans more then the actual symbol’s name and does normally include things like visibility modifiers.
The range doesn’t have to denote a node range in the sense of a abstract syntax tree. It can therefore not be used to re-construct a hierarchy of the symbols.
name: StringThe name of this symbol.
Tags for this symbol.
Trait Implementations§
Source§impl Clone for SymbolInformation
impl Clone for SymbolInformation
Source§fn clone(&self) -> SymbolInformation
fn clone(&self) -> SymbolInformation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more