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

Method Import

kdevplatform/language/duchain/ducontext.cpp:1653–1663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1651}
1652
1653DUContext::Import::Import(DUContext* _context, const DUContext* importer, const CursorInRevision& _position)
1654 : position(_position)
1655{
1656 if (_context && _context->owner() &&
1657 (_context->owner()->specialization().index() ||
1658 (importer && importer->topContext() != _context->topContext()))) {
1659 m_declaration = _context->owner()->id();
1660 } else {
1661 m_context = _context;
1662 }
1663}
1664
1665DUContext::Import::Import(const DeclarationId& id, const CursorInRevision& _position)
1666 : position(_position)

Callers

nothing calls this directly

Calls 5

ownerMethod · 0.45
indexMethod · 0.45
specializationMethod · 0.45
topContextMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected