| 84 | } |
| 85 | |
| 86 | VObjectType CompilationUnit::getDefaultNetType(PathId fileId, uint32_t line) { |
| 87 | if (m_defaultNetTypes.empty()) { |
| 88 | return VObjectType::paNetType_Wire; |
| 89 | } |
| 90 | for (int32_t i = (int32_t)m_defaultNetTypes.size() - 1; i >= 0; i--) { |
| 91 | NetTypeInfo& info = m_defaultNetTypes[i]; |
| 92 | if (info.m_fileId == fileId) { |
| 93 | if (line >= info.m_line) { |
| 94 | return info.m_type; |
| 95 | } |
| 96 | } |
| 97 | } |
| 98 | return VObjectType::paNetType_Wire; |
| 99 | } |
| 100 | |
| 101 | void CompilationUnit::setCurrentTimeInfo(PathId fileId) { |
| 102 | if (m_timeInfo.empty()) { |
no outgoing calls
no test coverage detected