diff options
author | Fawzi Mohamed <fawzi.mohamed@qt.io> | 2020-02-10 18:03:04 +0100 |
---|---|---|
committer | Fawzi Mohamed <fawzi.mohamed@qt.io> | 2020-02-12 10:18:04 +0100 |
commit | 731c85c2a42d7398a0319df5b8d0b465d118ba0d (patch) | |
tree | fb62e761930e5a1334f556f646656a04c22057da /src/qml/parser/qqmljsastvisitor_p.h | |
parent | cc918272bb5d329d42905713925a59a1513120f2 (diff) |
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 <ulf.hermann@qt.io>
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.h | 5 |
1 files changed, 2 insertions, 3 deletions
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; } |