Delete simplified trees except canonical simple trees to save more space.

This commit is contained in:
Kui LIU
2017-07-31 11:26:24 +02:00
parent 60a8858952
commit a29c3c7825
@@ -59,7 +59,7 @@ public class SimplifyTree {
actions.add(action); actions.add(action);
} }
} }
sourceCodeSimpleTree = sourceCodeTree(actions); // sourceCodeSimpleTree = sourceCodeTree(actions);
simpleTree = canonicalizeSourceCodeTree(actions, null); simpleTree = canonicalizeSourceCodeTree(actions, null);
} }
} else { } else {
@@ -79,15 +79,14 @@ public class SimplifyTree {
} }
tree.setChildren(newChildren); tree.setChildren(newChildren);
} }
sourceCodeSimpleTree = originalSourceCodeTree(tree, null); // sourceCodeSimpleTree = originalSourceCodeTree(tree, null);
// abstractIdentifierTree = abstractIdentifierTree(actionSet, tree, null); // abstractIdentifierTree = abstractIdentifierTree(actionSet, tree, null);
// abstractSimpleTree = semiSourceCodeTree(actionSet, tree, null); // abstractSimpleTree = semiSourceCodeTree(actionSet, tree, null);
simpleTree = canonicalizeSourceCodeTree(tree, null); simpleTree = canonicalizeSourceCodeTree(tree, null);
} }
// actionSet.setAbstractSimpleTree(abstractSimpleTree); actionSet.setAbstractSimpleTree(abstractSimpleTree);
// actionSet.setAbstractIdentifierTree(abstractIdentifierTree); actionSet.setAbstractIdentifierTree(abstractIdentifierTree);
// actionSet.setSimpleTree(sourceCodeSimpleTree);
actionSet.setSimpleTree(simpleTree); actionSet.setSimpleTree(simpleTree);
actionSet.setOriginalTree(sourceCodeSimpleTree); actionSet.setOriginalTree(sourceCodeSimpleTree);
} }