MCPcopy Create free account
hub / github.com/KDE/kdevelop / removeImportedChildContext

Method removeImportedChildContext

kdevplatform/language/duchain/ducontext.cpp:321–332  ·  view source on GitHub ↗

Can also be called with a context that is not in the list

Source from the content-addressed store, hash-verified

319
320//Can also be called with a context that is not in the list
321void DUContextDynamicData::removeImportedChildContext(DUContext* context)
322{
323// ENSURE_CAN_WRITE
324 DUContext::Import import(m_context, context);
325
326 if (import.isDirect()) {
327 d_func_dynamic()->m_importersList().removeOne(IndexedDUContext(context));
328 } else {
329 //Indirect importers are registered separately
330 Importers::self().removeImporter(import.indirectDeclarationId(), IndexedDUContext(context));
331 }
332}
333
334int DUContext::depth() const
335{

Callers 2

Calls 4

removeOneMethod · 0.80
removeImporterMethod · 0.80
IndexedDUContextClass · 0.70
isDirectMethod · 0.45

Tested by

no test coverage detected