summaryrefslogtreecommitdiff
path: root/src/qml/compiler/qv4codegen.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-03-21 15:17:24 +0100
committerLars Knoll <lars.knoll@qt.io>2018-04-27 08:11:09 +0000
commit0eeaad2bc8da63779d8659666c9bd99463cbe011 (patch)
tree9c01c87e60a9992a2bd6a7481303ff87a70f66e6 /src/qml/compiler/qv4codegen.cpp
parentc3ad706c6ff19a132bf78501430c850040e967fc (diff)
downloadqtdeclarative-0eeaad2bc8da63779d8659666c9bd99463cbe011.tar.gz
Add support for 'class' to the AST
Change-Id: I2a9e8fb847dfa45ca77ee43e14f39f2b2def5792 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4codegen.cpp')
-rw-r--r--src/qml/compiler/qv4codegen.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4codegen.cpp b/src/qml/compiler/qv4codegen.cpp
index d72162eeb1..45f54f7eb3 100644
--- a/src/qml/compiler/qv4codegen.cpp
+++ b/src/qml/compiler/qv4codegen.cpp
@@ -634,6 +634,12 @@ bool Codegen::visit(VariableDeclarationList *)
return false;
}
+bool Codegen::visit(ClassExpression *ast)
+{
+ throwSyntaxError(ast->firstSourceLocation(), QLatin1String("Support for 'class' is unimplemented."));
+ return false;
+}
+
bool Codegen::visit(Expression *ast)
{
if (hasError)