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

Method documentClosed

kdevplatform/language/duchain/duchain.cpp:1613–1625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1611}
1612
1613void DUChain::documentClosed(IDocument* document)
1614{
1615 if (sdDUChainPrivate->m_destroyed)
1616 return;
1617
1618 IndexedString url(document->url());
1619
1620 const auto currentDocumentContexts = sdDUChainPrivate->m_openDocumentContexts;
1621 for (const ReferencedTopDUContext& top : currentDocumentContexts) {
1622 if (top->url() == url)
1623 sdDUChainPrivate->m_openDocumentContexts.remove(top);
1624 }
1625}
1626
1627void DUChain::documentLoadedPrepare(KDevelop::IDocument* doc)
1628{

Callers

nothing calls this directly

Calls 2

urlMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected