@Override public void visit(StoreResultNode node) { if (replaceMap.containsKey(node.getValue().getName())) { Expression replacement = replaceMap.get(node.getValue().getName()); if (replacement instanceof Variable) { node.setValue((Variable) replacement.copy()); } } }
@Override public void visit(StoreResultNode node) { node.setValue((Variable) performExpressionReplacements(node.getValue())); super.visit(node); } }