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

Predicate refInContainer

Gets a reference to var (if kind is Ref()) or declaration of var (if kind is Decl()) in sc.

Import path

import Declarations.Declarations
VarRef refInContainer(Variable var, RefKind kind, StmtContainer sc)