aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler
diff options
context:
space:
mode:
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;