class Solargraph::Shell
def pin_description pin
-
(String)
-
Parameters:
-
pin
(Solargraph::Pin::Base
) --
def pin_description pin desc = if pin.path.nil? || pin.path.empty? if pin.closure "#{pin.closure.path} | #{pin.name}" else "#{pin.context.namespace} | #{pin.name}" end else pin.path end desc += " (#{pin.location.filename} #{pin.location.range.start.line})" if pin.location desc end