*** empty log message ***
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / ReturnStatement.java
index 85d1867..a30be75 100644 (file)
@@ -1,5 +1,10 @@
 package net.sourceforge.phpdt.internal.compiler.ast;
 
+import net.sourceforge.phpdt.internal.compiler.ast.declarations.VariableUsage;
+
+import java.util.List;
+import java.util.ArrayList;
+
 /**
  * A return statement.
  * @author Matthieu Casanova
@@ -8,16 +13,40 @@ public class ReturnStatement extends Statement {
 
   public Expression expression;
 
-  public ReturnStatement(Expression expression, int sourceStart, int sourceEnd) {
+  public ReturnStatement(final Expression expression, final int sourceStart, final int sourceEnd) {
     super(sourceStart, sourceEnd);
     this.expression = expression;
   }
 
-  public String toString(int tab) {
+  public String toString(final int tab) {
     final String s = tabString(tab);
     if (expression == null) {
       return s + "return";//$NON-NLS-1$
     }
     return s + "return " + expression.toStringExpression();//$NON-NLS-1$
   }
+
+    /**
+   * Get the variables from outside (parameters, globals ...)
+   * @return the variables from outside
+   */
+  public List getOutsideVariable() {
+    return new ArrayList();
+  }
+
+  /**
+   * get the modified variables.
+   * @return the variables modified
+   */
+  public List getModifiedVariable() {
+    return expression.getModifiedVariable();
+  }
+
+  /**
+   * Get the variables used.
+   * @return the variables used
+   */
+  public List getUsedVariable() {
+    return expression.getUsedVariable();
+  }
 }