lib/solargraph/source_map/clip.rb
# Get an array of all the locals that are visible from the cursors's
# position. Locals can be local variables, method parameters, or block
# parameters. The array starts with the nearest local pin.
#
# @return [Array<Solargraph::Pin::Base>]
Get an array of all the locals that are visible from the cursors's
position. Locals can be local variables, method parameters, or block
parameters. The array starts with the nearest local pin.
Get an array of all the locals that are visible from the cursors ' s position . Locals can be local variables method parameters or block parameters . The array starts with the nearest local pin .
def locals
        @locals ||= source_map.locals.select { |pin|
          pin.visible_from?(block, Position.new(cursor.position.line, (cursor.position.column.zero? ? 0 : cursor.position.column - 1)))
        }.reverse
      end
def locals @locals ||= source_map . locals . select { | pin | pin . visible_from? ( block , Position . new ( cursor . position . line , ( cursor . position . column . zero? ? 0 : cursor . position . column - 1 ) ) ) } . reverse end
Get an array of all the locals that are visible from the cursors's
position.
Get an array of all the locals that are visible from the cursors ' s position .
None
Array<Solargraph::Pin::Base>