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

Class MemberPortal

A portal corresponding to a named property of objects flowing through another portal.

Entries to this portal are the right-hand sides of writes to the property, while property reads are exits.

Import path

import semmle.javascript.dataflow.Portals

Direct supertypes

Indirect supertypes

Fields

Inherited fields

Predicates

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.

getName

Gets the name of this member.

toString

Gets a textual representation of this portal.

Inherited predicates

depth

INTERNAL: Do not use outside this library.

from CompoundPortal
getBasePortal

Gets the base portal over which this portal is constructed.

from CompoundPortal
getBasePortal

Gets the ith base portal of this portal.

from Portal
getInstance

Gets the instance portal of this portal, if any.

from Portal
getMember

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

from Portal
getParameter

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

from Portal
getReturn

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

from Portal

Charpred