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

Predicate localDefinitionReaches

Holds if the definition of local variable v in def reaches use along some control flow path without crossing another definition of v. DEPRECATED: Use the SSA.qll library instead.

Import path

import javascript
predicate localDefinitionReaches(LocalVariable v, VarDef def, VarUse use)