qmljs: fix order in BoundName

constructor and field order should be consistent

Change-Id: If698fd66cf67ab54c4be1638f19d758a54e33d5f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Fawzi Mohamed
2021-07-20 11:48:55 +02:00
parent 2f13810633
commit 864c1da05b
2 changed files with 3 additions and 3 deletions

View File

@@ -334,12 +334,12 @@ index ba1f642629..e286571e2e 100644
SourceLocation majorToken;
SourceLocation minorToken;
};
@@ -880,14 +879,13 @@ struct QML_PARSER_EXPORT BoundName
@@ -880,12 +879,11 @@ struct QML_PARSER_EXPORT BoundName
};
QString id;
- Type typeAnnotationType;
- TypeAnnotation *typeAnnotation;
- Type typeAnnotationType;
+ QTaggedPointer<TypeAnnotation, Type> typeAnnotation;
BoundName(const QString &id, TypeAnnotation *typeAnnotation, Type type = Declared)
- : id(id), typeAnnotation(typeAnnotation), typeAnnotationType(type)