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