1 package net.sourceforge.phpdt.internal.compiler.ast;
5 * @author Matthieu Casanova
7 public class ReturnStatement extends Statement {
9 public Expression expression;
11 public ReturnStatement(Expression expression, int sourceStart, int sourceEnd) {
12 super(sourceStart, sourceEnd);
13 this.expression = expression;
16 public String toString(int tab) {
17 final String s = tabString(tab);
18 if (expression == null) {
19 return s + "return";//$NON-NLS-1$
21 return s + "return " + expression.toStringExpression();//$NON-NLS-1$