| 336 | } |
| 337 | |
| 338 | void Declaration::clearOwnIndex() |
| 339 | { |
| 340 | if (!m_indexInTopContext) |
| 341 | return; |
| 342 | |
| 343 | if (!context() || (!d_func()->m_anonymousInContext && !context()->isAnonymous())) { |
| 344 | ENSURE_CAN_WRITE |
| 345 | } |
| 346 | |
| 347 | if (m_indexInTopContext) { |
| 348 | Q_ASSERT(m_topContext); |
| 349 | m_topContext->m_dynamicData->clearDeclarationIndex(this); |
| 350 | } |
| 351 | m_indexInTopContext = 0; |
| 352 | } |
| 353 | |
| 354 | void Declaration::allocateOwnIndex() |
| 355 | { |
nothing calls this directly
no test coverage detected