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

Predicate refInTopLevel

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

Import path

import Declarations.Declarations
VarRef refInTopLevel(Variable var, RefKind kind, TopLevel tl)