aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler
diff options
context:
space:
mode:
authorOlivier De Cannière <olivier.decanniere@qt.io>2025-05-09 12:38:12 +0200
committerOlivier De Cannière <olivier.decanniere@qt.io>2025-05-16 16:59:49 +0200
commit138889eab042fda149e13ed1d2c86d543da003d0 (patch)
treeca8879f8d14546f71b507bcc90015ac66f57ed1a /src/qml/compiler
parenta8f0758c9c3d619c8aef4e3e12bb695b76af9a70 (diff)
Qml: Rename Expression to CommaExpression in the AST
Expression is confusing. Pick-to: 6.9 6.8 6.5 Change-Id: I365ce06a266e24a506b14734fef8b977d6794a72 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/compiler')
-rw-r--r--src/qml/compiler/qv4codegen.cpp2
-rw-r--r--src/qml/compiler/qv4codegen_p.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/compiler/qv4codegen.cpp b/src/qml/compiler/qv4codegen.cpp
index 48807ad480..24672c367f 100644
--- a/src/qml/compiler/qv4codegen.cpp
+++ b/src/qml/compiler/qv4codegen.cpp
@@ -1144,7 +1144,7 @@ bool Codegen::visit(ClassDeclaration *ast)
return false;
}
-bool Codegen::visit(Expression *ast)
+bool Codegen::visit(CommaExpression *ast)
{
if (hasError())
return false;
diff --git a/src/qml/compiler/qv4codegen_p.h b/src/qml/compiler/qv4codegen_p.h
index 52ac2c546a..c65131ace3 100644
--- a/src/qml/compiler/qv4codegen_p.h
+++ b/src/qml/compiler/qv4codegen_p.h
@@ -623,12 +623,12 @@ protected:
bool visit(QQmlJS::AST::TypeAnnotation *ast) override;
// expressions
- bool visit(QQmlJS::AST::Expression *ast) override;
bool visit(QQmlJS::AST::ArrayPattern *ast) override;
bool visit(QQmlJS::AST::ArrayMemberExpression *ast) override;
bool visit(QQmlJS::AST::BinaryExpression *ast) override;
bool visit(QQmlJS::AST::CallExpression *ast) override;
void endVisit(QQmlJS::AST::CallExpression *ast) override;
+ bool visit(QQmlJS::AST::CommaExpression *ast) override;
bool visit(QQmlJS::AST::ConditionalExpression *ast) override;
bool visit(QQmlJS::AST::DeleteExpression *ast) override;
void endVisit(QQmlJS::AST::DeleteExpression *ast) override;