CodeQL library for JavaScript
codeql/javascript-all 0.7.4 ( changelog , source )
Search

Class ReactElementDefinition

A DOM element created by a React function.

Import path

import javascript

Direct supertypes

Indirect supertypes

Known direct subtypes

Predicates

getParent

Gets the parent element of this element.

getProps

Gets the props argument of this definition.

Inherited predicates

getAPrimaryQlClass

Gets the primary QL class for the Locatable.

from Locatable
getAnAttribute

Gets an attribute of this DOM element.

from ElementDefinition
getAttribute

Gets the ith attribute of this DOM element, if it can be determined.

from ElementDefinition
getAttributeByName

Gets an attribute of this DOM element with name name.

from ElementDefinition
getDocument

Gets the document element to which this element belongs, if it can be determined.

from ElementDefinition
getEndLine

Gets the line on which this element ends.

from Locatable
getFile

Gets the file this program element comes from.

from Locatable
getLocation

Gets this element’s location.

from Locatable
getName

Gets the name of the DOM element; for example, a <p> element has name p.

from ElementDefinition
getNumLines

Gets the number of lines covered by this element.

from Locatable
getPrimaryQlClasses

Gets a comma-separated list of the names of the primary CodeQL classes to which this element belongs.

from Locatable
getRoot

Gets the root element (i.e. an element without a parent) in which this element is contained.

from ElementDefinition
getStartLine

Gets the line on which this element starts.

from Locatable
toString

Gets a textual representation of this element.

from Locatable