CodeQL library for JavaScript
Search

Module Closure

Import path

import javascript

Predicates

getClosureNamespaceFromSourceNode

Gets the closure namespace path addressed by the given data flow node, if any.

getWrittenClosureNamespace

Gets the closure namespace path written to by the given property write, if any.

isClosureNamespace

Holds if name is a closure namespace, including proper namespace prefixes.

moduleImport

Gets a data flow node that refers to the given value exported from a Closure module.

Classes

ClosureModule

A module using the Closure module system, declared using goog.module() or goog.declareModuleId().

ClosureModuleDeclaration

A top-level call to goog.module or goog.declareModuleId.

ClosureNamespaceAccess

A data flow node that returns the value of a closure namespace.

ClosureNamespaceRef

A reference to a Closure namespace.

ClosureProvideCall

A top-level call to goog.provide.

ClosureRequireCall

A call to goog.require.

ClosureScript

A global Closure script, that is, a toplevel that is executed in the global scope and contains a toplevel call to goog.provide or goog.require.

Modules