summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/parser
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2009-08-03 09:19:18 (GMT)
committerErik Verbruggen <erik.verbruggen@nokia.com>2009-08-03 09:19:18 (GMT)
commitbf3f1cc5be0aa3965117441cb06bf37ce0c6c653 (patch)
tree8bffe935ad83d796e64bbb09c606bc38f3ac06a7 /src/declarative/qml/parser
parent3889a8947a9f8bf3a159dbd5e2c3ed1a63d3cb8d (diff)
downloadQt-bf3f1cc5be0aa3965117441cb06bf37ce0c6c653.zip
Qt-bf3f1cc5be0aa3965117441cb06bf37ce0c6c653.tar.gz
Qt-bf3f1cc5be0aa3965117441cb06bf37ce0c6c653.tar.bz2
Fixed import parsing, where the importId wasn't set.
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Diffstat (limited to 'src/declarative/qml/parser')
-rw-r--r--src/declarative/qml/parser/qmljs.g2
-rw-r--r--src/declarative/qml/parser/qmljsparser.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/declarative/qml/parser/qmljs.g b/src/declarative/qml/parser/qmljs.g
index 8d153ea..0dffa99 100644
--- a/src/declarative/qml/parser/qmljs.g
+++ b/src/declarative/qml/parser/qmljs.g
@@ -606,6 +606,7 @@ case $rule_number: {
sym(1).UiImport->versionToken = loc(2);
sym(1).UiImport->asToken = loc(3);
sym(1).UiImport->importIdToken = loc(4);
+ sym(1).UiImport->importId = sym(4).sval;
sym(1).UiImport->semicolonToken = loc(5);
} break;
./
@@ -616,6 +617,7 @@ UiImport: UiImportHead T_AS JsIdentifier T_SEMICOLON ;
case $rule_number: {
sym(1).UiImport->asToken = loc(2);
sym(1).UiImport->importIdToken = loc(3);
+ sym(1).UiImport->importId = sym(3).sval;
sym(1).UiImport->semicolonToken = loc(4);
} break;
./
diff --git a/src/declarative/qml/parser/qmljsparser.cpp b/src/declarative/qml/parser/qmljsparser.cpp
index 2ee0f88..1386a21 100644
--- a/src/declarative/qml/parser/qmljsparser.cpp
+++ b/src/declarative/qml/parser/qmljsparser.cpp
@@ -241,12 +241,14 @@ case 14: {
sym(1).UiImport->versionToken = loc(2);
sym(1).UiImport->asToken = loc(3);
sym(1).UiImport->importIdToken = loc(4);
+ sym(1).UiImport->importId = sym(4).sval;
sym(1).UiImport->semicolonToken = loc(5);
} break;
case 16: {
sym(1).UiImport->asToken = loc(2);
sym(1).UiImport->importIdToken = loc(3);
+ sym(1).UiImport->importId = sym(3).sval;
sym(1).UiImport->semicolonToken = loc(4);
} break;