aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4functionobject.cpp
diff options
context:
space:
mode:
authorSami Shalayel <sami.shalayel@qt.io>2023-05-04 10:25:17 +0200
committerSami Shalayel <sami.shalayel@qt.io>2023-05-23 10:58:22 +0200
commitaf6234be944c3057a54589d3c2bc3bd19bf290cd (patch)
tree76b3c9b73fe81cd2f6c29befd73f52df2256941c /src/qml/jsruntime/qv4functionobject.cpp
parent435488bdeabe7449d00b0efb968ede3f6c634f5f (diff)
QmlDom: implement the FieldMemberExpression
Implement expressions like "someId.propertyX" in QmlDom as a BinaryExpression. Fix the BinaryExpression to have an enum as operator, but only implement it for FieldMemberExpression and ArrayMemberExpressions (as other operations are ignored by qmlls for now). This is needed for qmlls to be able to find usages of QML object ids and properties when using 'someId.propertyX' or 'someIf["propertyX"]' in JS code. Also, replace one assert in qqmllsutils with a warning, as it crashes unrelated tests. The checked condition is indeed not critical, in the worst case some DomItem might not be able to be looked up from their text position. See test in following commit. Fixes: QTBUG-113381 Task-number: QTBUG-92876 Task-number: QTBUG-111415 Change-Id: I85c0703ec0b6e6f90962c4b3172ff084c3c2d606 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject.cpp')
0 files changed, 0 insertions, 0 deletions