Changeset View
Changeset View
Standalone View
Standalone View
duchain/helper.cpp
Show First 20 Lines • Show All 189 Lines • ▼ Show 20 Line(s) | 189 | { | |||
---|---|---|---|---|---|
190 | return getTypeDeclaration(id, context->parentContext(), searchInParent); | 190 | return getTypeDeclaration(id, context->parentContext(), searchInParent); | ||
191 | } | 191 | } | ||
192 | } | 192 | } | ||
193 | return DeclarationPointer(); | 193 | return DeclarationPointer(); | ||
194 | } | 194 | } | ||
195 | 195 | | |||
196 | QList< Declaration* > getDeclarations(QualifiedIdentifier id, DUContext* context, bool searchInParent) | 196 | QList< Declaration* > getDeclarations(QualifiedIdentifier id, DUContext* context, bool searchInParent) | ||
197 | { | 197 | { | ||
198 | (void)searchInParent; | ||||
198 | DUChainReadLocker lock; | 199 | DUChainReadLocker lock; | ||
199 | if(context) | 200 | if(context) | ||
200 | { | 201 | { | ||
201 | QList<Declaration*> decls; | 202 | QList<Declaration*> decls; | ||
202 | auto declarations = context->findDeclarations(id, CursorInRevision(INT_MAX, INT_MAX)); | 203 | auto declarations = context->findDeclarations(id, CursorInRevision(INT_MAX, INT_MAX)); | ||
203 | for(Declaration* decl: declarations) | 204 | for(Declaration* decl: declarations) | ||
204 | { | 205 | { | ||
205 | if(decl->kind() == Declaration::Import) | 206 | if(decl->kind() == Declaration::Import) | ||
Show All 40 Lines |