Merge Tree branch

This commit is contained in:
Léa Saviot
2018-07-02 15:48:50 +02:00
24 changed files with 2015 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
#include "expression_reference.h"
#include "allocation_failed_expression_node.h"
template<>
TreeNode * ExpressionRef::FailedAllocationStaticNode() {
static AllocationFailedExpressionNode FailureNode;
if (FailureNode.identifier() >= -1) {
int newIdentifier = TreePool::sharedPool()->registerStaticNode(&FailureNode);
FailureNode.rename(newIdentifier);
}
return &FailureNode;
}