class Solargraph::LanguageServer::Message::TextDocument::DocumentSymbol
Public Instance Methods
process()
click to toggle source
# File lib/solargraph/language_server/message/text_document/document_symbol.rb, line 5 def process pins = host.document_symbols params['textDocument']['uri'] info = pins.map do |pin| result = { name: pin.name, containerName: pin.namespace, kind: pin.symbol_kind, location: { uri: file_to_uri(pin.location.filename), range: pin.location.range.to_hash }, deprecated: pin.deprecated? } result end set_result info end