@Override public void visitVarDef(JCVariableDecl node) { if (node.init != null) { changeNode = (lm, ne) -> { // 変数への代入式を置換 if (node.init == lm) { node.init = ne; } }; } super.visitVarDef(node); }
@Override public void visitVarDef(JCVariableDecl tree) { visitDecl(tree, tree.sym); super.visitVarDef(tree); }