Skip to content

lsp / org.pinelang.lsp.lsp.models / SymbolInformation / location

location

val location:Location

The 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.