| 280 | } |
| 281 | |
| 282 | uint32_t ModuleInstance::getDepth() const { |
| 283 | uint32_t depth = 0; |
| 284 | const ModuleInstance* tmp = this; |
| 285 | while (tmp) { |
| 286 | tmp = tmp->getParent(); |
| 287 | depth++; |
| 288 | } |
| 289 | return depth; |
| 290 | } |
| 291 | |
| 292 | std::string ModuleInstance::getInstanceName() const { |
| 293 | if (m_definition == nullptr) { |
no test coverage detected