Show line numbers (other than 1) in problems view for errors and warnings
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / internal / compiler / ast / BranchStatement.java
index be0bdb0..df2725a 100644 (file)
@@ -14,14 +14,14 @@ import net.sourceforge.phpdt.internal.compiler.codegen.Label;
 import net.sourceforge.phpdt.internal.compiler.lookup.BlockScope;
 
 public abstract class BranchStatement extends Statement {
-       public char[] label;
+    public Expression expression;
        public Label targetLabel;
-       public AstNode[] subroutines;
+       public ASTNode[] subroutines;
 /**
  * BranchStatement constructor comment.
  */
-public BranchStatement(char[] l, int s,int e) {
-       label = l ;
+public BranchStatement(Expression expr, int s,int e) {
+       expression = expr ;
        sourceStart = s;
        sourceEnd = e;
 }
@@ -41,7 +41,7 @@ public BranchStatement(char[] l, int s,int e) {
 //     // blocks in sequence
 //     if (subroutines != null){
 //             for (int i = 0, max = subroutines.length; i < max; i++){
-//                     AstNode sub;
+//                     ASTNode sub;
 //                     if ((sub = subroutines[i]) instanceof SynchronizedStatement){
 //                             codeStream.load(((SynchronizedStatement)sub).synchroVariable);
 //                             codeStream.monitorexit();