diff --git a/src/libs/qmljs/parser/parser.patch b/src/libs/qmljs/parser/parser.patch index cbdbf94d1fa..6cc100575d9 100644 --- a/src/libs/qmljs/parser/parser.patch +++ b/src/libs/qmljs/parser/parser.patch @@ -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; BoundName(const QString &id, TypeAnnotation *typeAnnotation, Type type = Declared) - : id(id), typeAnnotation(typeAnnotation), typeAnnotationType(type) diff --git a/src/libs/qmljs/parser/qmljsast_p.h b/src/libs/qmljs/parser/qmljsast_p.h index a2ddcea5949..b51dd16c568 100644 --- a/src/libs/qmljs/parser/qmljsast_p.h +++ b/src/libs/qmljs/parser/qmljsast_p.h @@ -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) {}