diff options
author | Maximilian Goldstein <max.goldstein@qt.io> | 2020-05-13 15:31:51 +0200 |
---|---|---|
committer | Maximilian Goldstein <max.goldstein@qt.io> | 2020-05-20 13:46:36 +0200 |
commit | 1c0c8509da2a27858f7b25ffa71d1b19690c708c (patch) | |
tree | f574288f0275755a5691697267e58044322753bf /src/qml/parser/qqmljsastvisitor_p.h | |
parent | dcc65ddf83fc4ccf1127dfc002c7951d6288e0d5 (diff) |
Fix 'as' binary operation using invalid types
Fixes: QTBUG-81392
Change-Id: Ic83091c547a7854b7fa86b44d93c575bd7426bae
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/parser/qqmljsastvisitor_p.h')
-rw-r--r-- | src/qml/parser/qqmljsastvisitor_p.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qml/parser/qqmljsastvisitor_p.h b/src/qml/parser/qqmljsastvisitor_p.h index 8fbdb97ee2..1e4c78c0d4 100644 --- a/src/qml/parser/qqmljsastvisitor_p.h +++ b/src/qml/parser/qqmljsastvisitor_p.h @@ -141,6 +141,9 @@ public: virtual void endVisit(UiRequired *) = 0; // QQmlJS + virtual bool visit(TypeExpression *) = 0; + virtual void endVisit(TypeExpression *) = 0; + virtual bool visit(ThisExpression *) = 0; virtual void endVisit(ThisExpression *) = 0; @@ -482,6 +485,9 @@ public: void endVisit(UiRequired *) override {} // QQmlJS + bool visit(TypeExpression *) override { return true; } + void endVisit(TypeExpression *) override {} + bool visit(ThisExpression *) override { return true; } void endVisit(ThisExpression *) override {} |