targetLabel = targetContext.breakLabel();
FlowContext traversedContext = flowContext;
int subIndex = 0, maxSub = 5;
- subroutines = new AstNode[maxSub];
+ subroutines = new ASTNode[maxSub];
do {
- AstNode sub;
+ ASTNode sub;
if ((sub = traversedContext.subRoutine()) != null) {
if (subIndex == maxSub) {
- System.arraycopy(subroutines, 0, (subroutines = new AstNode[maxSub*=2]), 0, subIndex); // grow
+ System.arraycopy(subroutines, 0, (subroutines = new ASTNode[maxSub*=2]), 0, subIndex); // grow
}
subroutines[subIndex++] = sub;
if (sub.cannotReturn()) {
}
traversedContext.recordReturnFrom(flowInfo.unconditionalInits());
- AstNode node;
+ ASTNode node;
if ((node = traversedContext.associatedNode) instanceof TryStatement) {
TryStatement tryStatement = (TryStatement) node;
flowInfo.addInitializationsFrom(tryStatement.subRoutineInits); // collect inits
// resize subroutines
if (subIndex != maxSub) {
- System.arraycopy(subroutines, 0, (subroutines = new AstNode[subIndex]), 0, subIndex);
+ System.arraycopy(subroutines, 0, (subroutines = new ASTNode[subIndex]), 0, subIndex);
}
return FlowInfo.DEAD_END;
}