class LSProtocol::CallHierarchyItem
- LSProtocol::CallHierarchyItem
- Reference
- Object
Overview
Represents programming constructs like functions or constructors in the context of call hierarchy.
@since 3.16.0
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(kind : SymbolKind | Nil, name : String | Nil, range : Range | Nil, selection_range : Range | Nil, uri : URI | Nil, data : LSPAny | Nil = nil, detail : String | Nil = nil, tags : Array(SymbolTag) | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#data : LSPAny | Nil
A data entry field that is preserved between a call hierarchy prepare and incoming calls or outgoing calls requests.
-
#detail : String | Nil
More detail for this item, e.g.
-
#kind : SymbolKind
The kind of this item.
-
#name : String
The name of this item.
-
#range : Range
The range enclosing this symbol not including leading/trailing whitespace but everything else, e.g.
-
#selection_range : Range
The range that should be selected and revealed when this symbol is being picked, e.g.
-
#tags : Array(SymbolTag) | Nil
Tags for this item.
-
#uri : URI
The resource identifier of this item.
Constructor Detail
Instance Method Detail
A data entry field that is preserved between a call hierarchy prepare and incoming calls or outgoing calls requests.
The range enclosing this symbol not including leading/trailing whitespace but everything else, e.g. comments and code.
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 CallHierarchyItem#range
.