Class InstancePortal
A portal corresponding to an instantiation of functions or classes flowing through another portal.
Entries to this portal are the return values of functions that flow through the base
portal (to model the fact that new f()
evaluates to the return value of f
it is
non-primitive), while exits are new
expressions and other expressions referring to
instances of functions/classes flowing through the base portal.
Import path
import semmle.javascript.dataflow.Portals
Direct supertypes
Inherited fields
base | from CompoundPortal |
Predicates
getAnEntryNode | Gets an entry node for this portal, that is, a node through which data enters the portal. The flag |
getAnExitNode | Gets an exit node for this portal, that is, a node from which data that comes through the portal emerges. The flag |
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 | from Portal |
getInstance | Gets the instance portal of this portal, if any. | from Portal |
getMember | Gets the member portal with the given | from Portal |
getParameter | Gets the portal of parameter | from Portal |
getReturn | Gets the return value portal of this portal, if any. | from Portal |