X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/internal/compiler/ast/ReturnStatement.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/internal/compiler/ast/ReturnStatement.java index 8d65b96..13e7baf 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/internal/compiler/ast/ReturnStatement.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/internal/compiler/ast/ReturnStatement.java @@ -25,7 +25,7 @@ public class ReturnStatement extends Statement { public TypeBinding expressionType; public boolean isSynchronized; - public AstNode[] subroutines; + public ASTNode[] subroutines; public LocalVariableBinding saveValueVariable; public ReturnStatement(Expression expr, int s, int e ) { @@ -47,13 +47,13 @@ public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, Fl boolean saveValueNeeded = false; boolean hasValueToSave = expression != null && expression.constant == NotAConstant; do { - AstNode sub; + ASTNode sub; if ((sub = traversedContext.subRoutine()) != null) { if (this.subroutines == null){ - this.subroutines = new AstNode[maxSub]; + this.subroutines = new ASTNode[maxSub]; } if (subIndex == maxSub) { - System.arraycopy(this.subroutines, 0, (this.subroutines = new AstNode[maxSub *= 2]), 0, subIndex); // grow + System.arraycopy(this.subroutines, 0, (this.subroutines = new ASTNode[maxSub *= 2]), 0, subIndex); // grow } this.subroutines[subIndex++] = sub; if (sub.cannotReturn()) { @@ -63,7 +63,7 @@ public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, Fl } traversedContext.recordReturnFrom(flowInfo.unconditionalInits()); - AstNode node; + ASTNode node; if ((node = traversedContext.associatedNode) instanceof SynchronizedStatement) { isSynchronized = true; @@ -85,7 +85,7 @@ public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, Fl // resize subroutines if ((subroutines != null) && (subIndex != maxSub)) { - System.arraycopy(subroutines, 0, (subroutines = new AstNode[subIndex]), 0, subIndex); + System.arraycopy(subroutines, 0, (subroutines = new ASTNode[subIndex]), 0, subIndex); } // secret local variable for return value (note that this can only occur in a real method) @@ -124,7 +124,7 @@ public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, Fl // // 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; +// ASTNode sub; // if ((sub = subroutines[i]) instanceof SynchronizedStatement) { // codeStream.load(((SynchronizedStatement) sub).synchroVariable); // codeStream.monitorexit();