ObjectLiteral
An object literal, which doubles as an object destructuring target. Node type is Token.OBJECTLIT.
Properties
The absolute document position, computed by adding this node's relative position to the relative positions of all its parents.
The properties, or an empty list if none were added.
The innermost enclosing function, or null. The search begins with the parent.
Comments on the same line as the statement, for example the trailing comment in if (x == 2) // note.
True when this node sits in a destructuring position: a function parameter, the target of a variable initializer, the iterator of a for..in loop, and so on.
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.
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.