Class JSTags.ControlFlowRootTag

java.lang.Object
com.oracle.truffle.api.instrumentation.Tag
com.oracle.truffle.js.nodes.instrumentation.JSTags.ControlFlowRootTag
Enclosing class:
JSTags

public static final class JSTags.ControlFlowRootTag extends com.oracle.truffle.api.instrumentation.Tag
Control flow root nodes. Marks all code locations where a node that affects the control flow of an application is declared.

Examples are:

  • The if statement.
  • Iteration statements.
  • The switch statement.
Tagged nodes provide the following metadata:
  • type A String describing the control flow construct type. Possible values are:
    • Conditional A conditional branch statement (e.g., if or switch statements.)
    • Iteration An iterative block (e.g., for or while loop statements.)
    • ExceptionHandler An exception handling block (e.g., try.)