CodeQL library for Python
codeql/python-all 1.0.3-dev (changelog, source)

Member predicate NiceLocationExpr::hasLocationInfo

Holds if this element is at the specified location. The location spans column bc of line bl to column ec of line el in file f. For more information, see Locations.

predicate hasLocationInfo(string f, int bl, int bc, int el, int ec)