| 457 | } |
| 458 | |
| 459 | DDLNode *OpenDDLParser::top() { |
| 460 | if (m_stack.empty()) { |
| 461 | return nullptr; |
| 462 | } |
| 463 | |
| 464 | DDLNode *top = m_stack.back(); |
| 465 | return top; |
| 466 | } |
| 467 | |
| 468 | DDLNode *OpenDDLParser::getRoot() const { |
| 469 | if (nullptr == m_context) { |
no test coverage detected