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

Predicate CachedSteps::getContainerDepth

Gets the nesting depth of the given container, starting with the top-level at 0.

Import path

import semmle.javascript.dataflow.internal.FlowSteps
int getContainerDepth(StmtContainer container)