CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.15-dev (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)