ExpressionStatement
An expression statement. Node type is Token.EXPR_VOID when the value is discarded, and Token.EXPR_RESULT when it becomes the script result.
Constructors
Properties
The absolute document position, computed by adding this node's relative position to the relative positions of all its parents.
The innermost enclosing function, or null. The search begins with the parent.
The wrapped expression. Setting it reparents the expression and copies its position.
Comments on the same line as the statement, for example the trailing comment in if (x == 2) // note.
The node type, e.g. Token.NAME.
Functions
A debugging representation of the parse tree starting at this node. Each line reads abs-pos name position length [identifier].
Checks that every return usage in a function body is consistent with strict mode. See the END_* flags for what the analysis reports.
Constructs an indentation string of indent steps.
Recursively unlabel every TARGET or YIELD node in the tree. Used only for inlining finally blocks where jsr instructions used to be.
Marks this statement as producing the script result.
Makes this node's position relative to a parent. The current position is assumed to be absolute and is decremented by parentPosition.
Visits this node and its children in an arbitrary order.