mirror of https://github.com/vitalif/openscad
some FIXMEs
parent
9bb4fc829a
commit
75cd0f291a
|
@ -43,6 +43,7 @@ string NodeDumper::dumpChildren(const AbstractNode &node)
|
||||||
for (ChildList::const_iterator iter = this->visitedchildren[node.index()].begin();
|
for (ChildList::const_iterator iter = this->visitedchildren[node.index()].begin();
|
||||||
iter != this->visitedchildren[node.index()].end();
|
iter != this->visitedchildren[node.index()].end();
|
||||||
iter++) {
|
iter++) {
|
||||||
|
// FIXME: assert that cache contains **iter
|
||||||
dump << this->cache[**iter] << "\n";
|
dump << this->cache[**iter] << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -81,6 +82,7 @@ Response NodeDumper::visit(const State &state, const AbstractNode &node)
|
||||||
const string &NodeDumper::getDump() const
|
const string &NodeDumper::getDump() const
|
||||||
{
|
{
|
||||||
assert(this->root);
|
assert(this->root);
|
||||||
|
// FIXME: assert that cache contains root
|
||||||
return this->cache[*this->root];
|
return this->cache[*this->root];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,5 +33,4 @@ private:
|
||||||
NodeCache<string> cache;
|
NodeCache<string> cache;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue