Commit Graph

23 Commits

Author SHA1 Message Date
Christian Kamm
a7f78991c9 QmlJS: Move commonly used functions to qmlutils.h.
Change-Id: I22376d96fe575bc00a55094c06af80e32a5587e6
Reviewed-on: http://codereview.qt-project.org/6238
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
2011-10-10 09:36:12 +02:00
Christian Kamm
4b2f42cf87 QmlJS: Adjust existing code for updated QML parser.
Change-Id: I153723eeb9973be025daf47e317f7b9d076a3c72
Reviewed-on: http://codereview.qt-project.org/4733
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
2011-09-14 11:48:22 +02:00
Christian Kamm
d72bddc7da QmlJS: Update to new QmlJS parser.
UiPublicMember is now initialized with a statement.
2011-05-12 13:39:53 +02:00
Friedemann Kleint
ddf4b613f3 Krazy fixes (spelling, single char strings, char constants). 2011-05-10 15:21:41 +02:00
Tobias Hunger
aa2acec14c Fix/add copyright headers
Change-Id: I8b73d583be1ee7183f4074bce49d5390e38631a2
2011-05-06 15:17:05 +02:00
hjk
8397663964 Update license. 2011-04-13 11:49:28 +02:00
con
d1023c7614 It's 2011 now.
Reviewed-by: hjk
2011-01-12 09:46:24 +01:00
con
04e32b0049 License headers. 2010-12-17 16:03:42 +01:00
Kai Koehne
9eea942aa6 QmlOutline: Fix reordering of array elements
Make sure that a comma is added when inserting array elements
into the array.

Task-number: QTCREATORBUG-2796
Reviewed-by: Erik Verbruggen
2010-10-20 14:48:58 +02:00
Christian Kamm
a30c016189 QmlJS: Fix several crashes when UiQualifiedId::name is 0.
Task-number: QTCREATORBUG-2737
Reviewed-by: Kai Koehne
2010-10-14 15:15:56 +02:00
Kai Koehne
6321ccee9e QmlOutline: Support reparenting into object array 2010-08-12 18:06:21 +02:00
Kai Koehne
2e949c7015 QmlJS Rewriter: Remove empty grouped properties
Also remove grouped properties if the last member is removed via removeObjectMember
(removeBindingByName already takes care of this).
2010-07-21 14:14:10 +02:00
Kai Koehne
35e787e61c QmlJS Rewriter: Unify method names
changeProperty->changeBinding
removeProperty->removeBindingByName
2010-07-21 14:14:10 +02:00
Kai Koehne
74e8027a7b QmlJS Rewriter: Return ranges for addX methods
This way one can reindent afterwards.

Reviewed-by: Erik Verbruggen
2010-07-21 14:14:10 +02:00
Kai Koehne
715aafaba5 QmlJS Rewriter: Allow disambiguation of where ObjectMember should be added to
With 700975ade3 one could specify that a UiObjectMember should be inserted
after another one. But 0 'the default parameter' was ambiguous in that
either you want to have it inserted at the beginning of the member list,
or the heuristics should be applied.

Make this explicit by providing two methods.
2010-07-21 14:14:09 +02:00
Kai Koehne
7f01593b94 Compile fix 2010-07-20 15:26:57 +02:00
Kai Koehne
700975ade3 QmlJS: ALlow users of the Rewriter to specify where to insert stuff 2010-07-20 15:23:16 +02:00
Kai Koehne
3b48da9391 QmlJs: Fix corner case in Rewriter (whitespace handling)
Done by erikv
2010-07-20 15:06:28 +02:00
Kai Koehne
f0912bfe23 QmlJS: Make rewriter methods static
Done by erikv
2010-07-20 12:48:19 +02:00
Thomas Hartmann
cb296f49b0 qmljsrewriter: fix rewriting issue
We have to keep the line ending in case the removed
property is not the only thning in that line
2010-07-09 18:08:00 +02:00
Thomas Hartmann
97eb3e1304 qmljsrewriter: fixes removing of properties 2010-07-09 16:10:12 +02:00
Thomas Hartmann
fb1ae30293 qmljsrewriter: adapt rewriter to ChangeSet api changes 2010-07-07 13:09:55 +02:00
Erik Verbruggen
21b211fed0 Created a utility rewriting class from existing visitors. 2010-06-30 13:42:35 +02:00