Don't visit the sub tree of an AST::UiScriptBinding node.
authorRoberto Raggi <roberto.raggi@nokia.com>
Fri, 6 May 2011 08:08:27 +0000 (10:08 +0200)
committerRoberto Raggi <roberto.raggi@nokia.com>
Fri, 6 May 2011 08:15:57 +0000 (10:15 +0200)
ProcessAST needs to look only at QML nodes and as we know
it is impossible to find QML nodes inside JavaScript statements.

src/declarative/qml/qdeclarativescriptparser.cpp

index 352e341..e9be923 100644 (file)
@@ -724,7 +724,7 @@ bool ProcessAST::visit(AST::UiScriptBinding *node)
     while (propertyCount--)
         _stateStack.pop();
 
-    return true;
+    return false;
 }
 
 static QList<int> collectCommas(AST::UiArrayMemberList *members)
@@ -759,7 +759,7 @@ bool ProcessAST::visit(AST::UiArrayBinding *node)
         error.setLine(this->location(propertyName).start.line);
         error.setColumn(this->location(propertyName).start.column);
         _parser->_errors << error;
-        return 0;
+        return false;
     }
 
     accept(node->members);