forked from qt-creator/qt-creator
QmlJS: Adjust existing code for updated QML parser.
Change-Id: I153723eeb9973be025daf47e317f7b9d076a3c72 Reviewed-on: http://codereview.qt-project.org/4733 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
This commit is contained in:
@@ -452,11 +452,11 @@ IAssistProposal *QmlJSCompletionAssistProcessor::perform(const IAssistInterface
|
||||
break;
|
||||
const ObjectValue *newScopeType = qmlScopeType;
|
||||
for (AST::UiQualifiedId *it = objDef->qualifiedTypeNameId; it; it = it->next) {
|
||||
if (!newScopeType || !it->name) {
|
||||
if (!newScopeType || it->name.isEmpty()) {
|
||||
newScopeType = 0;
|
||||
break;
|
||||
}
|
||||
const Value *v = newScopeType->lookupMember(it->name->asString(), context);
|
||||
const Value *v = newScopeType->lookupMember(it->name.toString(), context);
|
||||
v = context->lookupReference(v);
|
||||
newScopeType = value_cast<const ObjectValue *>(v);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user