1 package net.sourceforge.phpdt.internal.compiler.ast;
4 * @author Matthieu Casanova
6 public class ReturnStatement extends Statement {
8 public Expression expression;
10 public ReturnStatement(Expression expression, int sourceStart, int sourceEnd) {
11 super(sourceStart, sourceEnd);
12 this.expression = expression;
15 public String toString(int tab) {
16 final String s = tabString(tab);
17 if (expression == null) {
18 return s + "return " + expression.toStringExpression();