aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kamm <christian.d.kamm@nokia.com>2011-06-27 10:07:29 +0200
committerQt by Nokia <qt-info@nokia.com>2011-06-29 08:54:33 +0200
commite41318cbb9261e65ddc164cd1811cb911bd70153 (patch)
treeb60abf237681d69cbc00a53f026aaebf9dde9491
parentcf3a3c397fb3c7e81a92d6ced4c08193c7e6d2f7 (diff)
Fix UiPublicMember::lastSourceLocation.
Change-Id: Ia2c13bf250b0b0e3d87ff7bd64a3bead1c26c1f0 Reviewed-on: http://codereview.qt.nokia.com/755 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
-rw-r--r--src/declarative/qml/parser/qdeclarativejsast_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/qml/parser/qdeclarativejsast_p.h b/src/declarative/qml/parser/qdeclarativejsast_p.h
index 69d878af13..0fc989c333 100644
--- a/src/declarative/qml/parser/qdeclarativejsast_p.h
+++ b/src/declarative/qml/parser/qdeclarativejsast_p.h
@@ -2365,6 +2365,8 @@ public:
{
if (binding)
return binding->lastSourceLocation();
+ if (statement)
+ return statement->lastSourceLocation();
return semicolonToken;
}