CodeQL library for Go
codeql/go-all 0.7.12 (changelog, source)
Search

Class Locatable

A program element with a location.

Import path

import semmle.go.Locations

Direct supertypes

Known direct subtypes

Predicates

getFile

Gets the file this program element comes from.

getLocation

Gets this element’s location.

getNumLines

Gets the number of lines covered by this element.

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.

toString

Gets a textual representation of this element.