CodeQL library for JavaScript
Search

Predicate firstRefInContainer

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

Import path

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