lib/solargraph/library.rb
# Get completion suggestions at the specified file and location.
#
# @param filename [String] The file to analyze
# @param line [Integer] The zero-based line number
# @param column [Integer] The zero-based column number
# @return [SourceMap::Completion]
# @todo Take a Location instead of filename/line/column
Get completion suggestions at the specified file and location.
Get completion suggestions at the specified file and location .
def completions_at filename, line, column
      position = Position.new(line, column)
      cursor = Source::Cursor.new(read(filename), position)
      api_map.clip(cursor).complete
    end
def completions_at filename , line , column position = Position . new ( line , column ) cursor = Source :: Cursor . new ( read ( filename ) , position ) api_map . clip ( cursor ) . complete end
Get completion suggestions at the specified file and location.
Get completion suggestions at the specified file and location .
None
SourceMap::Completion
filename
The file to analyze
The file to analyze
line
The zero-based line number
The zero - based line number
column
The zero-based column number
The zero - based column number
todo
Take a Location instead of filename/line/column
Take a Location instead of filename / line / column