| 1208 | } |
| 1209 | |
| 1210 | QVector<DUContext::Import> DUContext::importedParentContexts() const |
| 1211 | { |
| 1212 | ENSURE_CAN_READ |
| 1213 | QVector<DUContext::Import> ret; |
| 1214 | ret.reserve(d_func()->m_importedContextsSize()); |
| 1215 | FOREACH_FUNCTION(const DUContext::Import& import, d_func()->m_importedContexts) |
| 1216 | ret << import; |
| 1217 | return ret; |
| 1218 | } |
| 1219 | |
| 1220 | void DUContext::applyAliases(const SearchItem::PtrList& baseIdentifiers, SearchItem::PtrList& identifiers, |
| 1221 | const CursorInRevision& position, bool canBeNamespace, bool onlyImports) const |