| 1603 | } |
| 1604 | |
| 1605 | QVector<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 | |
| 1624 | void DUContext::SearchItem::addNext(const SearchItem::Ptr& other) |
| 1625 | { |