From d99c610674ada29c5280c07b45ebfab7bc4e3b11 Mon Sep 17 00:00:00 2001 From: Dmitrii Akshintsev Date: Tue, 28 Oct 2025 15:34:45 +0100 Subject: Qml IR: add support for virtual and override keywords This patch adds two new fields, IsVirtual and IsOverride, to CompiledData::Property. These fields will later be used to populate QQmlPropertyData and to handle property override semantics. At a high level, this change focuses on the data flow from the AST to the IR, laying the groundwork for future semantic resolution. Also moves test helper Syntax namespace to the quicktestutils Task-number: QTBUG-98320 Change-Id: Ic2a2e28df08d53c8752c49304bd5f7ff46916d08 Reviewed-by: Fabian Kosmale --- src/qml/compiler/qqmlirbuilder.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/qml/compiler/qqmlirbuilder.cpp') diff --git a/src/qml/compiler/qqmlirbuilder.cpp b/src/qml/compiler/qqmlirbuilder.cpp index bf124a2272..1605ab5f59 100644 --- a/src/qml/compiler/qqmlirbuilder.cpp +++ b/src/qml/compiler/qqmlirbuilder.cpp @@ -1045,6 +1045,8 @@ bool IRBuilder::visit(QQmlJS::AST::UiPublicMember *node) Property *property = New(); property->setIsReadOnly(node->isReadonly()); property->setIsRequired(node->isRequired()); + property->setIsVirtual(node->isVirtual()); + property->setIsOverride(node->isOverride()); property->setIsFinal(node->isFinal()); const QV4::CompiledData::CommonType builtinPropertyType -- cgit v1.2.3