use of dyvilx.tools.compiler.ast.expression.MapExpr in project Dyvil by Dyvil.
the class ArrayLiteralParser method end.
private void end(IToken token) {
if (this.values != null) {
final MapExpr map = new MapExpr(this.startPosition.to(token), this.keys, this.values);
this.consumer.setValue(map);
return;
}
final ArrayExpr array = new ArrayExpr(this.startPosition.to(token), this.keys);
this.consumer.setValue(array);
}