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

Predicate CachedSteps::getCapturedVariableDepth

Gets the nesting depth of the container declaring the given captured variable.

Import path

import semmle.javascript.dataflow.internal.FlowSteps
int getCapturedVariableDepth(LocalVariable v)