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

Class Portal

A portal, that is, an interface point between different npm packages.

Import path

import semmle.javascript.dataflow.Portals

Direct supertypes

Known direct subtypes

    Predicates

    depth

    INTERNAL: Do not use outside this library.

    getAnEntryNode

    Gets an entry node for this portal, that is, a node through which data enters the portal. The flag escapes indicates whether data written to the node may escape to a different package.

    getAnExitNode

    Gets an exit node for this portal, that is, a node from which data that comes through the portal emerges. The flag isRemote indicates whether data read from this node may come from a different package.

    getBasePortal

    Gets the ith base portal of this portal.

    getInstance

    Gets the instance portal of this portal, if any.

    getMember

    Gets the member portal with the given name of this portal, if any.

    getParameter

    Gets the portal of parameter idx of this portal, if any.

    getReturn

    Gets the return value portal of this portal, if any.

    toString

    Gets a textual representation of this portal.