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

Class Namespace

The canonical name for a namespace.

Import path

import javascript

Direct supertypes

Indirect supertypes

Predicates

getADefinition

Gets a definition of the namespace with this canonical name, if any.

getAnAccess

Gets a part of a type annotation that refers to this namespace.

getAnExportingContainer

Gets a namespace declaration or top-level whose exports contribute directly to this namespace.

getNamespaceMember

Gets a namespace nested in this one.

getTypeMember

Gets the type of the given name in this namespace, if any.

Inherited predicates

describeRoot

Gets a string describing the root scope of this canonical name.

from CanonicalName
getAChild

Gets a child of this canonical name, that is, an extension of its qualified name.

from CanonicalName
getChild

Gets the child of this canonical name that has the given name, if any.

from CanonicalName
getExternalModuleName

Gets the name of the external module represented by this canonical name, if any.

from CanonicalName
getGlobalName

Gets the name of the global variable represented by this canonical name, if any.

from CanonicalName
getModule

Gets the module represented by this canonical name, if such a module exists and was extracted.

from CanonicalName
getName

Gets the name without prefix.

from CanonicalName
getParent

Gets the parent of this canonical name, that is, the prefix of its qualified name.

from CanonicalName
getRelativeName

Gets the qualified name without the root.

from CanonicalName
getRootScope

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

from CanonicalName
hasChild

Holds if this canonical name has a child, i.e. an extension of its qualified name.

from CanonicalName
hasQualifiedName

Holds if this has the given qualified name, rooted in the global scope.

from CanonicalName
hasQualifiedName

Holds if this has the given qualified name, rooted in the given external module.

from CanonicalName
isExportedMember

Holds if this canonical name is exported by its parent.

from CanonicalName
isModuleRoot

Holds if this is the export namespace of a module.

from CanonicalName
isModuleRoot

Holds if this is the export namespace of the given module.

from CanonicalName
isRoot

True if this has no parent.

from CanonicalName
toString

Gets the fully qualified name, followed by the name of its enclosing module or file.

from CanonicalName

Charpred