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

Module API

Provides classes and predicates for working with the API boundary between the current codebase and external libraries.

See API::Node for more in-depth documentation.

Import path

import javascript

Predicates

moduleExport

Gets a node corresponding to an export of module m.

moduleImport

Gets a node corresponding to an import of module m.

root

Gets the root node.

Classes

AdditionalUseStep

A class for contributing new steps for tracking uses of an API.

CallNode

A call connected to the API graph.

Definition

A node corresponding to a definition of an API component.

EntryPoint

An API entry point.

InvokeNode

An InvokeNode that is connected to the API graph.

NewNode

A new call connected to the API graph.

Node

A node in the API graph, representing a value that has crossed the boundary between this codebase and an external library (or in general, any external codebase).

Root

The root node of an API graph.

Use

A node corresponding to the use of an API component.

Modules

Internal

Provides access to API graph nodes without taking into account types from models.

Label

Provides classes modeling the various edges (labels) in the API graph.

Node

Provides helper predicates for accessing API-graph nodes.