forked from qt-creator/qt-creator
qmljs: update Qml parser to parser of Qt 6.2
this is needed (among other things) for * null coalescing * shebang support Change-Id: I1b37fd86593f143de8b39c0daf433831a8785568 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
@@ -370,7 +370,7 @@ LibraryInfo::LibraryInfo(Status status)
|
||||
updateFingerprint();
|
||||
}
|
||||
|
||||
LibraryInfo::LibraryInfo(const QmlDirParser::TypeInfo &typeInfo)
|
||||
LibraryInfo::LibraryInfo(const QString &typeInfo)
|
||||
: _status(Found)
|
||||
{
|
||||
_typeinfos.append(typeInfo);
|
||||
@@ -421,10 +421,10 @@ QByteArray LibraryInfo::calculateFingerprint() const
|
||||
}
|
||||
len = _typeinfos.size();
|
||||
hash.addData(reinterpret_cast<const char *>(&len), sizeof(len));
|
||||
foreach (const QmlDirParser::TypeInfo &typeinfo, _typeinfos) {
|
||||
len = typeinfo.fileName.size();
|
||||
foreach (const QString &typeinfo, _typeinfos) {
|
||||
len = typeinfo.size();
|
||||
hash.addData(reinterpret_cast<const char *>(&len), sizeof(len));
|
||||
hash.addData(reinterpret_cast<const char *>(typeinfo.fileName.constData()),
|
||||
hash.addData(reinterpret_cast<const char *>(typeinfo.constData()),
|
||||
len * sizeofQChar);
|
||||
}
|
||||
len = _metaObjects.size();
|
||||
|
||||
Reference in New Issue
Block a user