@Override public AstNode visitExpressionStatement(final ExpressionStatement node, final Void data) { final AstNode n = super.visitExpressionStatement(node, data); if (!context.getSettings().getDisableForEachTransforms() && n instanceof ExpressionStatement) { final AstNode result = transformForEach((ExpressionStatement) n); if (result != null) { return result.acceptVisitor(this, data); } } return n; }
@Override public AstNode visitExpressionStatement(final ExpressionStatement node, final Void data) { final AstNode n = super.visitExpressionStatement(node, data); if (!context.getSettings().getDisableForEachTransforms() && n instanceof ExpressionStatement) { final AstNode result = transformForEach((ExpressionStatement) n); if (result != null) { return result.acceptVisitor(this, data); } } return n; }
@Override public AstNode visitExpressionStatement(final ExpressionStatement node, final Void data) { final AstNode n = super.visitExpressionStatement(node, data); if (!context.getSettings().getDisableForEachTransforms() && n instanceof ExpressionStatement) { final AstNode result = transformForEach((ExpressionStatement) n); if (result != null) { return result.acceptVisitor(this, data); } } return n; }
@Override public Void visitExpressionStatement(final ExpressionStatement node, final Void data) { super.visitExpressionStatement(node, data); // // Remove `super()`-style invocations within constructors, but only if they actually // bind to a constructor. Keep calls to potentially obfuscated methods named 'super'. // if (inConstructor() && !context.getSettings().getShowSyntheticMembers()) { final Match match = EMPTY_SUPER.match(node); if (match.success()) { final AstNode target = first(match.<AstNode>get("target")); final MemberReference member = target.getUserData(Keys.MEMBER_REFERENCE); if (member instanceof MethodReference && ((MethodReference) member).isConstructor()) { node.remove(); } } } return null; } }
@Override public Void visitExpressionStatement(final ExpressionStatement node, final Void data) { super.visitExpressionStatement(node, data); // // Remove `super()`-style invocations within constructors, but only if they actually // bind to a constructor. Keep calls to potentially obfuscated methods named 'super'. // if (inConstructor() && !context.getSettings().getShowSyntheticMembers()) { final Match match = EMPTY_SUPER.match(node); if (match.success()) { final AstNode target = firstOrDefault(match.<AstNode>get("target")); final MemberReference member = target.getUserData(Keys.MEMBER_REFERENCE); if (member instanceof MethodReference && ((MethodReference) member).isConstructor()) { node.remove(); } } } return null; } }
@Override public Void visitExpressionStatement(final ExpressionStatement node, final Void data) { super.visitExpressionStatement(node, data); // // Remove `super()`-style invocations within constructors, but only if they actually // bind to a constructor. Keep calls to potentially obfuscated methods named 'super'. // if (inConstructor() && !context.getSettings().getShowSyntheticMembers()) { final Match match = EMPTY_SUPER.match(node); if (match.success()) { final AstNode target = firstOrDefault(match.<AstNode>get("target")); final MemberReference member = target.getUserData(Keys.MEMBER_REFERENCE); if (member instanceof MethodReference && ((MethodReference) member).isConstructor()) { node.remove(); } } } return null; } }