Some more AST work. Functions no longer retain an identifer for their name.

This commit is contained in:
Nathan Braswell
2013-10-26 11:47:34 -04:00
parent 02fd878c92
commit e818236e90
5 changed files with 53 additions and 5 deletions

View File

@@ -42,8 +42,9 @@ NodeTree<T>* CollapseTransformation<T>::transform(NodeTree<T>* from) {
node->removeChild(children[i]);
std::vector<NodeTree<T>*> newChildren = children[i]->getChildren();
node->addChildren(newChildren);
for (int j = 0; j < newChildren.size(); j++)
toProcess.push(newChildren[j]);
toProcess.push(node); //Do this node again
// for (int j = 0; j < newChildren.size(); j++)
// toProcess.push(newChildren[j]);
}
else
toProcess.push(children[i]);