CodeQL library for Ruby
codeql/ruby-all 0.8.15-dev (changelog, source)
Search

Class Location

A location as given by a file, a start line, a start column, an end line, and an end column.

For more information about locations see Locations.

Import path

import ruby

Direct supertypes

Known direct subtypes

Predicates

getEndColumn

Gets the 1-based column number (inclusive) where this location ends.

getEndLine

Gets the 1-based line number (inclusive) where this location ends.

getFile

Gets the file for this location.

getNumLines

Gets the number of lines covered by this location.

getStartColumn

Gets the 1-based column number (inclusive) where this location starts.

getStartLine

Gets the 1-based line number (inclusive) where this location starts.

hasLocationInfo

Holds if this element is at the specified location. The location spans column startcolumn of line startline to column endcolumn of line endline in file filepath. For more information, see Providing locations in CodeQL queries.

strictlyBefore

Holds if this location starts strictly before the specified location.

toString

Gets a textual representation of this element.