diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2009-08-03 09:19:18 (GMT) |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2009-08-03 09:19:18 (GMT) |
commit | bf3f1cc5be0aa3965117441cb06bf37ce0c6c653 (patch) | |
tree | 8bffe935ad83d796e64bbb09c606bc38f3ac06a7 /src/declarative/qml/parser | |
parent | 3889a8947a9f8bf3a159dbd5e2c3ed1a63d3cb8d (diff) | |
download | Qt-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.g | 2 | ||||
-rw-r--r-- | src/declarative/qml/parser/qmljsparser.cpp | 2 |
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; |