diff options
author | Fawzi Mohamed <fawzi.mohamed@qt.io> | 2020-02-11 16:13:36 +0100 |
---|---|---|
committer | Fawzi Mohamed <fawzi.mohamed@qt.io> | 2020-02-12 18:28:46 +0100 |
commit | 41e8f8a7c6aa4a530abdbc52f8014c4563e85417 (patch) | |
tree | 35eca52953b51fedaeb3c16af695287c48eedc17 /src/qml/parser/qqmljsastvisitor_p.h | |
parent | c2e756dc1962eeb3575f618b38272359d4fccc89 (diff) |
Add UiAnnotation for annotation objects
This is a partial patch that is fuilly fixed with the following
one (big restructure) because it needs extra visit methods,
and that leads to conflicts, but I think it gets lost if merged with
the next one.
Change-Id: I54331a47a5c7faaf78a97e580825d1feec5adf92
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 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qml/parser/qqmljsastvisitor_p.h b/src/qml/parser/qqmljsastvisitor_p.h index 2c17e9ba36..8fbdb97ee2 100644 --- a/src/qml/parser/qqmljsastvisitor_p.h +++ b/src/qml/parser/qqmljsastvisitor_p.h @@ -113,6 +113,7 @@ public: virtual bool visit(UiEnumMemberList *) = 0; virtual bool visit(UiVersionSpecifier *) = 0; virtual bool visit(UiInlineComponent *) = 0; + virtual bool visit(UiAnnotation *) = 0; virtual bool visit(UiAnnotationList *) = 0; virtual bool visit(UiRequired *) = 0; @@ -135,6 +136,7 @@ public: virtual void endVisit(UiEnumMemberList *) = 0; virtual void endVisit(UiVersionSpecifier *) = 0; virtual void endVisit(UiInlineComponent *) = 0; + virtual void endVisit(UiAnnotation *) = 0; virtual void endVisit(UiAnnotationList *) = 0; virtual void endVisit(UiRequired *) = 0; @@ -452,6 +454,7 @@ public: bool visit(UiEnumMemberList *) override { return true; } bool visit(UiVersionSpecifier *) override { return true; } bool visit(UiInlineComponent *) override { return true; } + bool visit(UiAnnotation *) override { return true; } bool visit(UiAnnotationList *) override { return true; } bool visit(UiRequired *) override { return true; } @@ -474,6 +477,7 @@ public: void endVisit(UiEnumMemberList *) override {} void endVisit(UiVersionSpecifier *) override {} void endVisit(UiInlineComponent *) override {} + void endVisit(UiAnnotation *) override {} void endVisit(UiAnnotationList *) override {} void endVisit(UiRequired *) override {} |