summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/parser/qdeclarativejs.g
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-03-22 23:26:17 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-03-22 23:26:17 (GMT)
commit190b2667b54eff4540e6b204d0cda39847417a52 (patch)
tree70e85a7e650c4ac3e8f8dae9bd9c4bf32fd355b3 /src/declarative/qml/parser/qdeclarativejs.g
parent2b098cd37d86bc7c843225412c90948affb8fef1 (diff)
downloadQt-190b2667b54eff4540e6b204d0cda39847417a52.zip
Qt-190b2667b54eff4540e6b204d0cda39847417a52.tar.gz
Qt-190b2667b54eff4540e6b204d0cda39847417a52.tar.bz2
Manual merge.
Diffstat (limited to 'src/declarative/qml/parser/qdeclarativejs.g')
-rw-r--r--src/declarative/qml/parser/qdeclarativejs.g4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/qml/parser/qdeclarativejs.g b/src/declarative/qml/parser/qdeclarativejs.g
index 493ad25..0256c52 100644
--- a/src/declarative/qml/parser/qdeclarativejs.g
+++ b/src/declarative/qml/parser/qdeclarativejs.g
@@ -665,7 +665,9 @@ case $rule_number: {
sym(1).Node = node;
- if (! node) {
+ if (node) {
+ node->importToken = loc(1);
+ } else {
diagnostic_messages.append(DiagnosticMessage(DiagnosticMessage::Error, loc(1),
QLatin1String("Expected a qualified name id or a string literal")));