forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
||||
@@ -880,8 +880,8 @@ struct QML_PARSER_EXPORT BoundName
|
||||
};
|
||||
|
||||
QString id;
|
||||
Type typeAnnotationType;
|
||||
TypeAnnotation *typeAnnotation;
|
||||
Type typeAnnotationType;
|
||||
BoundName(const QString &id, TypeAnnotation *typeAnnotation, Type type = Declared)
|
||||
: id(id), typeAnnotation(typeAnnotation), typeAnnotationType(type)
|
||||
{}
|
||||
|
||||
Reference in New Issue
Block a user