@Override public boolean visit(MethodDeclaration node) { if (isInside(node)) { Block body = node.getBody(); if (body != null) { body.accept(this); } visitBackwards(node.parameters()); if (node.getAST().apiLevel() >= AST.JLS3) { visitBackwards(node.typeParameters()); } } return false; }
@Override public boolean visit(Block node) { if (isInside(node)) { visitBackwards(node.statements()); } return false; }