diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-09-30 08:37:37 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-30 18:21:45 +0200 |
commit | 385890bfdb165b397b29d3b62099f0687b358510 (patch) | |
tree | 3a1fd22eec98e521e560ae0d4cdfe16fa84ea045 /src/qml/compiler | |
parent | d05151d735540f22ee3af75fdc7b2848dde2fe6f (diff) |
Fix error messages when assigning to non-existent properties in new compiler
Introduce a simple valdator pass early on to catch those assignments. Also
fix storing the correct line/col for default property object bindings and
remember the minor/major version of an import in the final type reference.
Change-Id: Ib2a93dfe1a30fcd9c09b5443fb8199ad11b19769
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/compiler')
-rw-r--r-- | src/qml/compiler/qqmlcodegenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/compiler/qqmlcodegenerator.cpp b/src/qml/compiler/qqmlcodegenerator.cpp index ca4d8ecc7b..84bab99a52 100644 --- a/src/qml/compiler/qqmlcodegenerator.cpp +++ b/src/qml/compiler/qqmlcodegenerator.cpp @@ -197,7 +197,7 @@ bool QQmlCodeGenerator::visit(AST::UiObjectDefinition *node) bool isType = lastId->name.unicode()->isUpper(); if (isType) { int idx = defineQMLObject(node); - appendBinding(AST::SourceLocation(), emptyStringIndex, idx); + appendBinding(node->qualifiedTypeNameId->identifierToken, emptyStringIndex, idx); } else { int idx = defineQMLObject(/*qualfied type name id*/0, node->initializer); appendBinding(node->qualifiedTypeNameId, idx); |