CodeQL library for Rust
codeql/rust-all 0.1.11 (changelog, source)
Search

Class LocationImpl::LocationDefault

Import path

import codeql.rust.elements.internal.LocationImpl

Direct supertypes

Indirect supertypes

Known direct subtypes

Fields

Predicates

hasLocationFileInfo

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.

Inherited predicates

contains

Holds if this location contains location that, meaning that it starts before and ends after it.

from Location
endsAfter

Holds if this location ends after location that.

from Location
endsStrictlyAfter

Holds if this location ends strictly after location that.

from Location
fromSource

Holds if this location is from source code.

from Location
getEndColumn

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

from Location
getEndLine

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

from Location
getFile

Gets the file for this location.

from Location
getNumLines

Gets the number of lines covered by this location.

from Location
getStartColumn

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

from Location
getStartLine

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

from Location
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.

from Location
startsBefore

Holds if this location starts before location that.

from Location
startsStrictlyBefore

Holds if this location starts strictly before location that.

from Location
strictlyContains

Holds if this location strictlycontains location that, meaning that it starts strictly before and ends strictly after it.

from Location
toString

Gets a textual representation of this element.

from Location

Charpred