aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/parser/qqmljsast.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-03-20 21:46:29 +0100
committerLars Knoll <lars.knoll@qt.io>2018-04-26 21:37:42 +0000
commit09cd6f8020b7c25eaaf959a48c452b01aebcf627 (patch)
tree69749d463a95d123aabcfea807a0a689bc8fcd2f /src/qml/parser/qqmljsast.cpp
parentcfac31cd823bd8eb83900adeecbfd3d789a3ee1d (diff)
Add support for 'super' and 'new.target' to the AST
Codegen will still throw a Syntax error on it though. Change-Id: I292dd166ad8cb4a62f2bcfa9637bdc76cf95bb51 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/parser/qqmljsast.cpp')
-rw-r--r--src/qml/parser/qqmljsast.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/qml/parser/qqmljsast.cpp b/src/qml/parser/qqmljsast.cpp
index b480cdf76c..829887ab9d 100644
--- a/src/qml/parser/qqmljsast.cpp
+++ b/src/qml/parser/qqmljsast.cpp
@@ -147,6 +147,15 @@ void FalseLiteral::accept0(Visitor *visitor)
visitor->endVisit(this);
}
+void SuperLiteral::accept0(Visitor *visitor)
+{
+ if (visitor->visit(this)) {
+ }
+
+ visitor->endVisit(this);
+}
+
+
void StringLiteral::accept0(Visitor *visitor)
{
if (visitor->visit(this)) {