From e41318cbb9261e65ddc164cd1811cb911bd70153 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Mon, 27 Jun 2011 10:07:29 +0200 Subject: [PATCH] Fix UiPublicMember::lastSourceLocation. Change-Id: Ia2c13bf250b0b0e3d87ff7bd64a3bead1c26c1f0 Reviewed-on: http://codereview.qt.nokia.com/755 Reviewed-by: Qt Sanity Bot Reviewed-by: Roberto Raggi --- src/declarative/qml/parser/qdeclarativejsast_p.h | 2 ++ 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 69d878a..0fc989c 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; } -- 1.7.2.5