class Solargraph::Pin::InstanceVariable

def binder

Returns:
  • (ComplexType) -
def binder
  closure.binder
end

def context

Returns:
  • (ComplexType) -
def context
  @context ||= begin
    result = super
    if scope == :class
      ComplexType.parse("::Class<#{result.rooted_namespace}>")
    else
      result.reduce_class_type
    end
  end
end

def nearly? other

Parameters:
  • other (InstanceVariable) --
def nearly? other
  super && binder == other.binder
end

def scope

Returns:
  • (::Symbol) -
def scope
  closure.binder.scope
end