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

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()