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

Class CanonicalFunctionName

The canonical name for a function.

Import path

import javascript

Direct supertypes

Indirect supertypes

Predicates

getADefinition

Gets a function with this canonical name.

getAnAccess

Gets an expression (such as a callee expression in a function call or new expression) that refers to a function with this canonical name.

getImplementation

Gets the implementation of this function, if it exists.

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