CodeQL library for C#
codeql/csharp-all 1.0.5-dev (changelog, source)
Search

Class Location

A location of a program element.

Import path

import csharp

Direct supertypes

Known direct subtypes

Predicates

before

Holds if this location starts before the specified location.

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 of the 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 Locations.

strictlyBefore

Holds if this location starts strictly before the specified location.

toString

Gets a textual representation of this location.