module Solargraph::Pin::Localized

def visible_from?(other, position)

Returns:
  • (Boolean) -

Parameters:
  • position (Source::Position) -- The caller's position
  • other (Pin::Base) -- The caller's block
def visible_from?(other, position)
  other.filename == filename and
    (other == block or other.named_context == named_context) and
    presence.contain?(position)
end