summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlscriptparser.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2009-06-30 08:38:45 (GMT)
committerErik Verbruggen <erik.verbruggen@nokia.com>2009-06-30 08:38:45 (GMT)
commit7cba48bea33dcb80979975b27047d81025d054a5 (patch)
treebba85c4ed8879efef3328fc576a95afe9fd4fe47 /src/declarative/qml/qmlscriptparser.cpp
parent6856dd2850245414fb610e651391f5fe141605de (diff)
downloadQt-7cba48bea33dcb80979975b27047d81025d054a5.zip
Qt-7cba48bea33dcb80979975b27047d81025d054a5.tar.gz
Qt-7cba48bea33dcb80979975b27047d81025d054a5.tar.bz2
First set of changes to add dynamic properties to the QML DOM.
Diffstat (limited to 'src/declarative/qml/qmlscriptparser.cpp')
-rw-r--r--src/declarative/qml/qmlscriptparser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlscriptparser.cpp b/src/declarative/qml/qmlscriptparser.cpp
index fb7492d..f1d4fd2 100644
--- a/src/declarative/qml/qmlscriptparser.cpp
+++ b/src/declarative/qml/qmlscriptparser.cpp
@@ -532,6 +532,8 @@ bool ProcessAST::visit(AST::UiPublicMember *node)
property.isDefaultProperty = node->isDefaultMember;
property.type = type;
property.name = name.toUtf8();
+ property.range.offset = node->firstSourceLocation().offset;
+ property.range.length = node->semicolonToken.end() - property.range.offset;
if (node->expression) { // default value
property.defaultValue = new Property;