aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/parser/qqmljsastvisitor_p.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2022-10-17 09:18:06 +0200
committerUlf Hermann <ulf.hermann@qt.io>2022-10-19 20:32:01 +0200
commite89a06753c772bd96b3299e03b2f7ad78ffc9fb9 (patch)
tree970133e681a0452ee3a1799925763d240d67030f /src/qml/parser/qqmljsastvisitor_p.h
parent0f08e3e673ece32fc9ada041115a0df631b447f3 (diff)
Parser: Simplify argument "lists" for type annotations
There can in fact only be one type argument, and we don't need a finish() method. In fact the finish() method didn't return the type argument at all. Task-number: QTBUG-107171 Change-Id: Ifb7d85ca42a38d37da71b6453b458c7ec10cd64d Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/parser/qqmljsastvisitor_p.h')
-rw-r--r--src/qml/parser/qqmljsastvisitor_p.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/parser/qqmljsastvisitor_p.h b/src/qml/parser/qqmljsastvisitor_p.h
index e749f4a509..450cfaad40 100644
--- a/src/qml/parser/qqmljsastvisitor_p.h
+++ b/src/qml/parser/qqmljsastvisitor_p.h
@@ -378,8 +378,8 @@ public:
virtual bool visit(Type *) = 0;
virtual void endVisit(Type *) = 0;
- virtual bool visit(TypeArgumentList *) = 0;
- virtual void endVisit(TypeArgumentList *) = 0;
+ virtual bool visit(TypeArgument *) = 0;
+ virtual void endVisit(TypeArgument *) = 0;
virtual bool visit(TypeAnnotation *) = 0;
virtual void endVisit(TypeAnnotation *) = 0;
@@ -722,8 +722,8 @@ public:
bool visit(Type *) override { return true; }
void endVisit(Type *) override {}
- bool visit(TypeArgumentList *) override { return true; }
- void endVisit(TypeArgumentList *) override {}
+ bool visit(TypeArgument *) override { return true; }
+ void endVisit(TypeArgument *) override {}
bool visit(TypeAnnotation *) override { return true; }
void endVisit(TypeAnnotation *) override {}