class Solargraph::Pin::InstanceVariable

def binder

def binder
  closure.binder
end

def context

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

def nearly? other

def nearly? other
  super && binder == other.binder
end

def scope

def scope
  closure.binder.scope
end