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

Member predicate CanonicalName::getRootScope

Gets the outermost scope from which this type can be accessed by a qualified name (without using an import).

This is typically the top-level of a module, but for locally declared types (e.g. types declared inside a function), this is the container where the type is declared.

Scope getRootScope()