From 731c85c2a42d7398a0319df5b8d0b465d118ba0d Mon Sep 17 00:00:00 2001 From: Fawzi Mohamed Date: Mon, 10 Feb 2020 18:03:04 +0100 Subject: Put Ui visitors together UiRequired is not with all Ui Vistors and introduced with a // Ui comment. Move it there for consistency. Change-Id: I51315ad380fd50998e7efe095c873d14a5ae7a97 Reviewed-by: Ulf Hermann Reviewed-by: Fabian Kosmale --- src/qml/parser/qqmljsastvisitor_p.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/qml/parser') diff --git a/src/qml/parser/qqmljsastvisitor_p.h b/src/qml/parser/qqmljsastvisitor_p.h index 8339d2113d..2671587b62 100644 --- a/src/qml/parser/qqmljsastvisitor_p.h +++ b/src/qml/parser/qqmljsastvisitor_p.h @@ -114,6 +114,7 @@ public: virtual bool visit(UiVersionSpecifier *) { return true; } virtual bool visit(UiInlineComponent *) { return true; } virtual bool visit(UiAnnotationList *) { return true; } + virtual bool visit(UiRequired *) { return true; } virtual void endVisit(UiProgram *) {} virtual void endVisit(UiImport *) {} @@ -135,6 +136,7 @@ public: virtual void endVisit(UiVersionSpecifier *) {} virtual void endVisit(UiInlineComponent *) {} virtual void endVisit(UiAnnotationList *) {} + virtual void endVisit(UiRequired *) {} // QQmlJS virtual bool visit(ThisExpression *) { return true; } @@ -413,9 +415,6 @@ public: virtual bool visit(TypeAnnotation *) { return true; } virtual void endVisit(TypeAnnotation *) {} - virtual bool visit(UiRequired *) { return true; } - virtual void endVisit(UiRequired *) {} - virtual void throwRecursionDepthError() = 0; quint16 recursionDepth() const { return m_recursionDepth; } -- cgit v1.2.3