ReplaceWith and ReplaceChild methods on References

This commit is contained in:
Léa Saviot
2018-06-22 14:05:23 +02:00
parent 0fb04ea45a
commit 6f598acc10
5 changed files with 81 additions and 63 deletions

View File

@@ -1,14 +0,0 @@
#include "tree_reference.h"
#if 0
void TreeReference::addOperand(TreeReference<TreeNode> t) {
// At this point, e has been copied.
// We can therefore pilfer its node!
Node * n = node();
pool->move(
t->node(),
t->next()
);
node->stealAsOperand(t->node());
}
#endif