A program element with its location restricted to its first line, unless the element is less than one line long to begin with.
This is useful for avoiding multi-line violations.
Gets the primary QL class for the Locatable.
Gets the line on which this element ends.
Gets the file this program element comes from.
Gets this element’s location.
Gets the number of lines covered by this element.
Gets a comma-separated list of the names of the primary CodeQL classes to which this element belongs.
Gets the line on which this element starts.
Gets a textual representation of this element.