A massive organize imports and formatting of the sources using default Eclipse code...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / BranchStatement.java
index 245a491..4b17645 100644 (file)
@@ -14,59 +14,64 @@ import net.sourceforge.phpdt.internal.compiler.codegen.Label;
 import net.sourceforge.phpdt.internal.compiler.lookup.BlockScope;
 
 public abstract class BranchStatement extends Statement {
-    public Expression expression;
+       public Expression expression;
+
        public Label targetLabel;
+
        public ASTNode[] subroutines;
-/**
- * BranchStatement constructor comment.
- */
-public BranchStatement(Expression expr, int s,int e) {
-       expression = expr ;
-       sourceStart = s;
-       sourceEnd = e;
-}
-/**
- * Branch code generation
- *
- *   generate the finallyInvocationSequence.
- */
-//public void generateCode(BlockScope currentScope, CodeStream codeStream) {
-//
-//     if ((bits & IsReachableMASK) == 0) {
-//             return;
-//     }
-//     int pc = codeStream.position;
-//
-//     // generation of code responsible for invoking the finally 
-//     // blocks in sequence
-//     if (subroutines != null){
-//             for (int i = 0, max = subroutines.length; i < max; i++){
-//                     ASTNode sub;
-//                     if ((sub = subroutines[i]) instanceof SynchronizedStatement){
-//                             codeStream.load(((SynchronizedStatement)sub).synchroVariable);
-//                             codeStream.monitorexit(); 
-//                     } else {
-//                             TryStatement trySub = (TryStatement) sub;
-//                             if (trySub.subRoutineCannotReturn)      {
-//                                     codeStream.goto_(trySub.subRoutineStartLabel);
-//                                     codeStream.recordPositionsFrom(pc, this.sourceStart);
-//                                     return;
-//                             } else {
-//                                     codeStream.jsr(trySub.subRoutineStartLabel);
-//                             }
-//                     }
-//             }
-//     }
-//     codeStream.goto_(targetLabel);
-//     codeStream.recordPositionsFrom(pc, this.sourceStart);
-//}
-public void resetStateForCodeGeneration() {
-       if (this.targetLabel != null) {
-               this.targetLabel.resetStateForCodeGeneration();
+
+       /**
+        * BranchStatement constructor comment.
+        */
+       public BranchStatement(Expression expr, int s, int e) {
+               expression = expr;
+               sourceStart = s;
+               sourceEnd = e;
        }
-}
 
-public void resolve(BlockScope scope) {
-}
+       /**
+        * Branch code generation
+        * 
+        * generate the finallyInvocationSequence.
+        */
+       // public void generateCode(BlockScope currentScope, CodeStream codeStream)
+       // {
+       //
+       // if ((bits & IsReachableMASK) == 0) {
+       // return;
+       // }
+       // int pc = codeStream.position;
+       //
+       // // generation of code responsible for invoking the finally
+       // // blocks in sequence
+       // if (subroutines != null){
+       // for (int i = 0, max = subroutines.length; i < max; i++){
+       // ASTNode sub;
+       // if ((sub = subroutines[i]) instanceof SynchronizedStatement){
+       // codeStream.load(((SynchronizedStatement)sub).synchroVariable);
+       // codeStream.monitorexit();
+       // } else {
+       // TryStatement trySub = (TryStatement) sub;
+       // if (trySub.subRoutineCannotReturn) {
+       // codeStream.goto_(trySub.subRoutineStartLabel);
+       // codeStream.recordPositionsFrom(pc, this.sourceStart);
+       // return;
+       // } else {
+       // codeStream.jsr(trySub.subRoutineStartLabel);
+       // }
+       // }
+       // }
+       // }
+       // codeStream.goto_(targetLabel);
+       // codeStream.recordPositionsFrom(pc, this.sourceStart);
+       // }
+       public void resetStateForCodeGeneration() {
+               if (this.targetLabel != null) {
+                       this.targetLabel.resetStateForCodeGeneration();
+               }
+       }
+
+       public void resolve(BlockScope scope) {
+       }
 
 }