Class SpreadExpression
java.lang.Object
dev.frostlake.executor.expressions.SpreadExpression
- All Implemented Interfaces:
Expression
The spread operator
**<expr>: inside an array constructor or a function argument list the
inner ARRAY's elements are spliced in as individual elements/arguments; inside an object
constructor the inner OBJECT's pairs are merged in. The splice happens where the surrounding
container evaluates its parts — a spread reaching plain evaluation on its own is an error.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(ExpressionVisitor<T> visitor) Accept a visitor for the visitor patterngetInner()
-
Constructor Details
-
SpreadExpression
-
-
Method Details
-
getInner
-
accept
Description copied from interface:ExpressionAccept a visitor for the visitor pattern- Specified by:
acceptin interfaceExpression
-