| 369 | |
| 370 | private: |
| 371 | uint32_t addTypeImpl(const AST::Component::DefType *DT, |
| 372 | bool IsLocal) noexcept { |
| 373 | auto &Ctx = getCurrentContext(); |
| 374 | uint32_t Idx = static_cast<uint32_t>(Ctx.Types.size()); |
| 375 | Ctx.Types.push_back(DT); |
| 376 | if (DT != nullptr) { |
| 377 | if (DT->isInstanceType()) { |
| 378 | Ctx.InstanceTypes[Idx] = &DT->getInstanceType(); |
| 379 | } else if (DT->isResourceType()) { |
| 380 | Ctx.ResourceTypes[Idx] = &DT->getResourceType(); |
| 381 | if (IsLocal) { |
| 382 | Ctx.DefinedResources.insert(Idx); |
| 383 | } |
| 384 | } |
| 385 | } |
| 386 | return Idx; |
| 387 | } |
| 388 | |
| 389 | std::deque<Context> CompCtxs; |
| 390 | }; |
nothing calls this directly
no test coverage detected