module Solargraph::Pin::Common
def binder
-
(ComplexType)
-
def binder @binder || context end
def comments
-
(String)
-
def comments @comments ||= '' end
def context
-
(ComplexType)
-
def context # Get the static context from the nearest namespace @context ||= find_context end
def find_context
-
(ComplexType)
-
def find_context here = closure until here.nil? if here.is_a?(Pin::Namespace) return here.return_type elsif here.is_a?(Pin::Method) return here.context end here = here.closure end ComplexType::ROOT end
def name
-
(String)
-
def name @name ||= '' end
def namespace
-
(String)
-
def namespace context.namespace.to_s end
def path
-
(String)
-
def path @path ||= name.empty? ? context.namespace : "#{context.namespace}::#{name}" end
def return_type
-
(ComplexType)
-
def return_type @return_type ||= ComplexType::UNDEFINED end