aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/parser
diff options
context:
space:
mode:
authorSami Shalayel <sami.shalayel@qt.io>2023-09-11 15:50:26 +0200
committerSami Shalayel <sami.shalayel@qt.io>2023-09-26 20:46:38 +0200
commite3ffea6d42191e5b2d00aab9cfbd628913af4754 (patch)
tree7e250f25fb72b88e6062c376e6c94988a8aa6ecd /src/qml/parser
parent0232b45cef0bef90ec4e24fb3a30ea2a3dafd09f (diff)
qmlls: fix DomItem::filterUp and DomItem::rootQmlObject
Rewrite broken DomItem::filterUp method: the code was unreadable and the search stopped at owner() instead of top(), which makes it problematic for scriptexpressions when going from a scriptexpression to the containing QmlComponent, for example, as it stops at owner() before actually reaching the QmlComponent. Write a testcase for that. Also add some internal documentation for filterUp and FilterUpOptions, as Inner and Outer have special meanings. Also remove coded-duplication in the implementation of rootQmlObject and qmlObject. This prepares the DOM for the extension of the existing autocompletion feature. Task-number: QTBUG-116899 Change-Id: I3d8c619af0a9eed74e49b0fc81f2c20ad4947ab1 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Semih Yavuz <semih.yavuz@qt.io>
Diffstat (limited to 'src/qml/parser')
0 files changed, 0 insertions, 0 deletions