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

Class Line

A non-empty line in the source code

Import path

import python

Direct supertypes

Predicates

getLength

Gets the length of this line

getLineNumber

Gets the line number of this line

getModule

Gets the file for this line

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.