| 940 | } |
| 941 | |
| 942 | QVector<QPair<Declaration*, int>> DUContext::allDeclarations(const CursorInRevision& position, |
| 943 | const TopDUContext* topContext, |
| 944 | bool searchInParents) const |
| 945 | { |
| 946 | ENSURE_CAN_READ |
| 947 | |
| 948 | QVector<QPair<Declaration*, int>> ret; |
| 949 | |
| 950 | QHash<const DUContext*, bool> hadContexts; |
| 951 | // Iterate back up the chain |
| 952 | mergeDeclarationsInternal(ret, position, hadContexts, topContext ? topContext : this->topContext(), |
| 953 | searchInParents); |
| 954 | |
| 955 | return ret; |
| 956 | } |
| 957 | |
| 958 | QVector<Declaration*> DUContext::localDeclarations(const TopDUContext* source) const |
| 959 | { |
no test coverage detected