X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/BranchStatement.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/BranchStatement.java index f38d816..d64a352 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/BranchStatement.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/BranchStatement.java @@ -1,5 +1,7 @@ package net.sourceforge.phpdt.internal.compiler.ast; +import java.util.List; + /** * Here is a branchstatement : break or continue * @author Matthieu Casanova @@ -8,8 +10,35 @@ public abstract class BranchStatement extends Statement { public Expression expression; - public BranchStatement(Expression expression,int sourceStart, int sourceEnd) { + public BranchStatement(final Expression expression, final int sourceStart, final int sourceEnd) { super(sourceStart, sourceEnd); this.expression = expression; } + + /** + * Get the variables from outside (parameters, globals ...) + */ + public void getOutsideVariable(final List list) { + if (expression != null) { + expression.getOutsideVariable(list); + } + } + + /** + * get the modified variables. + */ + public void getModifiedVariable(final List list) { + if (expression != null) { + expression.getModifiedVariable(list); + } + } + + /** + * Get the variables used. + */ + public void getUsedVariable(final List list) { + if (expression != null) { + expression.getUsedVariable(list); + } + } }