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

Member predicate VarAccess::getVariable

Gets the variable this identifier refers to.

When analyzing TypeScript code, a variable may spuriously be resolved as a global due to incomplete modeling of exported variables in namespaces.

Variable getVariable()