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

Method toList

kdevplatform/language/duchain/ducontext.cpp:1605–1622  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1603}
1604
1605QVector<QualifiedIdentifier> DUContext::SearchItem::toList(const QualifiedIdentifier& prefix) const
1606{
1607 QVector<QualifiedIdentifier> ret;
1608
1609 QualifiedIdentifier id = prefix;
1610 if (id.isEmpty())
1611 id.setExplicitlyGlobal(isExplicitlyGlobal);
1612 if (!identifier.isEmpty())
1613 id.push(identifier);
1614
1615 if (next.isEmpty()) {
1616 ret << id;
1617 } else {
1618 for (int a = 0; a < next.size(); ++a)
1619 ret += next[a]->toList(id);
1620 }
1621 return ret;
1622}
1623
1624void DUContext::SearchItem::addNext(const SearchItem::Ptr& other)
1625{

Callers 4

applyAliasesMethod · 0.45
fullyApplyAliasesMethod · 0.45
codeDescriptionMethod · 0.45

Calls 4

setExplicitlyGlobalMethod · 0.80
isEmptyMethod · 0.45
pushMethod · 0.45
sizeMethod · 0.45

Tested by 1

codeDescriptionMethod · 0.36