public void visitForLoop(ForStatement forLoop) { pushState(); forLoop.setVariableScope(currentScope); Parameter p = forLoop.getVariable(); p.setInStaticContext(currentScope.isInStaticContext()); if (p != ForStatement.FOR_LOOP_DUMMY) declare(p, forLoop); super.visitForLoop(forLoop); popState(); }
@Override public void visitForLoop(final ForStatement forLoop) { pushContext(forLoop); super.visitForLoop(forLoop); popContext(); }
@Override public final void visitForLoop(ForStatement forLoop) { super.visitForLoop(forLoop); }