Module Nodes

Provides classes representing particular kinds of data flow nodes, such as nodes corresponding to function definitions or nodes corresponding to parameters.

Import path

semmle.javascript.dataflow.Nodes

Imports

javascript

Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML.

Predicates

globalObjectRef

Gets a data flow node corresponding to an access to the global object, including this expressions outside functions, references to global variables window and global, and uses of the global npm package.

globalVarRef

Gets a data flow node corresponding to an access to global variable name, either directly, through window or global, or through the global npm package.

moduleImport

Gets a (default) import of the module with the given path.

moduleMember

Gets a data flow node that either imports m from the module with the given path, or accesses m as a member on a default or namespace import from path.

Classes

ArrayConstructorInvokeNode

A data flow node corresponding to a new Array() or Array() invocation.

ArrayCreationNode

A data flow node corresponding to the creation or a new array, either through an array literal or an invocation of the Array constructor.

ArrayLiteralNode

A data flow node corresponding to an array literal expression.

CallNode

A data flow node corresponding to a function call without new.

FunctionNode

A data flow node corresponding to a function definition.

GlobalVarRefNode

A data flow node corresponding to a global variable access.

InvokeNode

A data flow node corresponding to a function invocation (with or without new).

MethodCallNode

A data flow node corresponding to a method call.

ModuleImportNode

A data flow node corresponding to a default import from a module, or a (AMD or CommonJS) require of a module.

NewNode

A data flow node corresponding to a new expression.

ObjectLiteralNode

A data flow node corresponding to an object literal expression.

ParameterNode

A data flow node corresponding to a parameter.

ThisNode

A data flow node corresponding to the this parameter in a function or this at the top-level.