| 1037 | } |
| 1038 | |
| 1039 | void TopDUContext::clearImportedParentContexts() |
| 1040 | { |
| 1041 | if (usingImportsCache()) { |
| 1042 | d_func_dynamic()->m_importsCache = IndexedRecursiveImports(); |
| 1043 | d_func_dynamic()->m_importsCache.insert(IndexedTopDUContext(this)); |
| 1044 | } |
| 1045 | |
| 1046 | DUContext::clearImportedParentContexts(); |
| 1047 | |
| 1048 | m_local->clearImportedContextsRecursively(); |
| 1049 | |
| 1050 | Q_ASSERT(m_local->m_recursiveImports.count() == 0); |
| 1051 | |
| 1052 | Q_ASSERT(m_local->m_indexedRecursiveImports.count() == 1); |
| 1053 | |
| 1054 | Q_ASSERT(imports(this, CursorInRevision::invalid())); |
| 1055 | } |
| 1056 | |
| 1057 | void TopDUContext::addImportedParentContext(DUContext* context, const CursorInRevision& position, bool anonymous, |
| 1058 | bool temporary) |
nothing calls this directly
no test coverage detected