CodeQL library for JavaScript
Search

Class API::Definition

A node corresponding to a definition of an API component.

Import path

import javascript

Direct supertypes

Indirect supertypes

Predicates

toString

Gets a textual representation of this node.

Inherited predicates

getACall

Gets a call to the function represented by this API component.

from Node
getAMember

Gets a node representing a member of this API component where the name of the member may or may not be known statically.

from Node
getAParameter

Gets a node representing a parameter or the receiver of the function represented by this node.

from Node
getAPredecessor

Gets a node such that there is an edge in the API graph between that other node and this one, and that edge is labeled with lbl

from Node
getAPredecessor

Gets a node such that there is an edge in the API graph between this node and the other one.

from Node
getARhs

Gets a data-flow node corresponding to the right-hand side of a definition of the API component represented by this node.

from Node
getASuccessor

Gets a node such that there is an edge in the API graph between this node and the other one, and that edge is labeled with lbl.

from Node
getASuccessor

Gets a node such that there is an edge in the API graph between that other node and this one.

from Node
getAUse

Gets a data-flow node corresponding to a use of the API component represented by this node.

from Node
getAValueReachingRhs

Gets a data-flow node that may interprocedurally flow to the right-hand side of a definition of the API component represented by this node.

from Node
getAnImmediateUse

Gets an immediate use of the API component represented by this node.

from Node
getAnInstantiation

Gets a new call to the function represented by this API component.

from Node
getAnInvocation

Gets an invocation (with our without new) to the function represented by this API component.

from Node
getDepth

Gets the shortest distance from the root to this node in the API graph.

from Node
getInducingNode

Gets the data-flow node that gives rise to this node, if any.

from Node
getInstance

Gets a node representing an instance of this API component, that is, an object whose constructor is the function represented by this node.

from Node
getLastParameter

Gets a node representing the last parameter of the function represented by this node.

from Node
getMember

Gets a node representing member m of this API component.

from Node
getNumParameter

Gets the number of parameters of the function represented by this node.

from Node
getParameter

Gets a node representing the ith parameter of the function represented by this node.

from Node
getPath

Gets a string representation of the lexicographically least among all shortest access paths from the root to this node.

from Node
getPromised

Gets a node representing the promised value wrapped in the Promise object represented by this node.

from Node
getReceiver

Gets a node representing the receiver of the function represented by this node.

from Node
getReturn

Gets a node representing the result of the function represented by this node.

from Node
getUnknownMember

Gets a node representing a member of this API component where the name of the member is not known statically.

from Node
hasLocationInfo

Holds if this node is located in file path between line startline, column startcol, and line endline, column endcol.

from Node
refersTo

Holds if this node may take its value from that node.

from Node