aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4functionobject.cpp
diff options
context:
space:
mode:
authorSami Shalayel <sami.shalayel@qt.io>2023-05-03 17:39:56 +0200
committerSami Shalayel <sami.shalayel@qt.io>2023-05-23 10:58:26 +0200
commit087a988efe14f6b1a0a43b0eaa285bcaae74d7ec (patch)
treef8d9b60df6b23eca4d4fb34a5592083ba6391400 /src/qml/jsruntime/qv4functionobject.cpp
parentaf6234be944c3057a54589d3c2bc3bd19bf290cd (diff)
qmlls: find usages of id's and properties
Implement find usages for id's and properties. Use the QQmlJSScope to do typeresolution to avoid finding wrong usages, e.g. properties with the same name but that are on a different QmlObject. Implement find Usages to find usages of id's and properties. Use the type resolution of the QQmlJSScope to find the correct usages in fieldmemberexpressions, e.g. when multiple qml objects have a property with the same name that should not be confused with each other. To resolve id's to the correct qml objects, use the qqmljstyperesolver which is inserted in the Dom during type construction. During the DomConstruction, set semantic scopes inside of QmlComponents and PropertyDefinitions. The latter one has to be done before the endVisit call, so split QQmlDomAstCreatorWithQQmlJSScope::setScopeInDom() into setScopeInDomBeforeEndvisit() and setScopeInDomAfterEndvisit(). Task-number: QTBUG-113381 Task-number: QTBUG-92876 Task-number: QTBUG-111415 Change-Id: I4818bf8624fb969b3e9fc5f622403f582559addd Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject.cpp')
0 files changed, 0 insertions, 0 deletions