aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/parser/qqmljsastvisitor_p.h
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/qqmljsastvisitor_p.h
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/qqmljsastvisitor_p.h')
-rw-r--r--src/qml/parser/qqmljsastvisitor_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/parser/qqmljsastvisitor_p.h b/src/qml/parser/qqmljsastvisitor_p.h
index 1e6ce8eaee..d995ce6f0b 100644
--- a/src/qml/parser/qqmljsastvisitor_p.h
+++ b/src/qml/parser/qqmljsastvisitor_p.h
@@ -122,6 +122,9 @@ public:
virtual bool visit(FalseLiteral *) { return true; }
virtual void endVisit(FalseLiteral *) {}
+ virtual bool visit(SuperLiteral *) { return true; }
+ virtual void endVisit(SuperLiteral *) {}
+
virtual bool visit(StringLiteral *) { return true; }
virtual void endVisit(StringLiteral *) {}