Fix UiPublicMember::lastSourceLocation.
authorChristian Kamm <christian.d.kamm@nokia.com>
Mon, 27 Jun 2011 08:07:29 +0000 (10:07 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 29 Jun 2011 06:54:33 +0000 (08:54 +0200)
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>
src/declarative/qml/parser/qdeclarativejsast_p.h

index 69d878a..0fc989c 100644 (file)
@@ -2365,6 +2365,8 @@ public:
     {
       if (binding)
           return binding->lastSourceLocation();
+      if (statement)
+          return statement->lastSourceLocation();
 
       return semicolonToken;
     }