+++ /dev/null
-package net.sourceforge.phpdt.internal.compiler.ast;
-
-import java.util.List;
-import java.util.ArrayList;
-
-/**
- * Here is a branchstatement : break or continue
- * @author Matthieu Casanova
- */
-public abstract class BranchStatement extends Statement {
-
- public Expression expression;
-
- 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);
- }
- }
-}