forked from qt-creator/qt-creator
QmlJS: Fix completion inside grouped propery bindings.
Task-number: QTCREATORBUG-3541 Change-Id: Ida8e59b65836c8515fbfbd2a9e4737d9ae04e76c Reviewed-on: http://codereview.qt.nokia.com/639 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
This commit is contained in:
@@ -461,9 +461,9 @@ bool Check::visit(UiObjectBinding *ast)
|
||||
void Check::visitQmlObject(Node *ast, UiQualifiedId *typeId,
|
||||
UiObjectInitializer *initializer)
|
||||
{
|
||||
// If the 'typeId' starts with a lower-case letter, it doesn't define
|
||||
// a new object instance. For instance: anchors { ... }
|
||||
if (typeId->name->asString().at(0).isLower() && ! typeId->next) {
|
||||
// Don't do type checks if it's a grouped property binding.
|
||||
// For instance: anchors { ... }
|
||||
if (_doc->bind()->isGroupedPropertyBinding(ast)) {
|
||||
checkScopeObjectMember(typeId);
|
||||
// ### don't give up!
|
||||
return;
|
||||
|
Reference in New Issue
Block a user