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