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

Member predicate OptionWithLocationInfo::Option::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.

predicate hasLocationInfo(string filePath, int startLine, int startColumn, int endLine, int endColumn)