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