///////////////////////////////////////////////////////////////////////////
| 604 | |
| 605 | //////////////////////////////////////////////////////////////////////////////// |
| 606 | std::string DOM::Node::dumpNode(const DOM::Node* node, int depth) const { |
| 607 | std::stringstream out; |
| 608 | |
| 609 | // Indent. |
| 610 | out << std::string(depth * 2, ' '); |
| 611 | |
| 612 | out << "\033[31m" << node->_name << "\033[0m"; |
| 613 | |
| 614 | if (node->_provider) out << " 0x" << std::hex << (long long)(void*)node->_provider; |
| 615 | |
| 616 | out << '\n'; |
| 617 | |
| 618 | // Recurse for branches. |
| 619 | for (auto& b : node->_branches) out << dumpNode(b, depth + 1); |
| 620 | |
| 621 | return out.str(); |
| 622 | } |
| 623 | |
| 624 | //////////////////////////////////////////////////////////////////////////////// |
| 625 | std::string DOM::Node::dump() const { |
nothing calls this directly
no outgoing calls
no test coverage detected