1 package net.sourceforge.phpdt.internal.compiler.ast;
5 * it could be list($v1,$v2), list(,$v2) ...
6 * @author Matthieu Casanova
8 public class ListExpression extends Expression {
11 public Expression expression;
13 public ListExpression(String[] vars,
14 Expression expression,
17 super(sourceStart, sourceEnd);
19 this.expression = expression;
22 public ListExpression(String[] vars,
25 super(sourceStart, sourceEnd);
30 * Return the expression as String.
31 * @return the expression
33 public String toStringExpression() {
34 final StringBuffer buff = new StringBuffer("list(");
35 for (int i = 0; i < vars.length; i++) {
44 if (expression != null) {
46 buff.append(expression.toStringExpression());
48 return buff.toString();