CodeQL library for JavaScript

Member predicate VarDef::getSource

Gets the source of this definition, that is, the data flow node representing the value that this definition assigns to its target.

This predicate is not defined for VarDefs where the source is implicit, such as for-in loops, parameters or destructuring assignments.

ValueNode getSource()