qmldocumentparser: adapt to changes in Dom

Make qmldocumentparser compile again.

Change-Id: If32264d138f599015698612efa40d9e052fbdbfe
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
This commit is contained in:
Sami Shalayel
2024-01-10 09:42:46 +01:00
parent f5cb1530a4
commit a38e8cdaaa

View File

@@ -294,10 +294,9 @@ Storage::Synchronization::Type QmlDocumentParser::parse(const QString &sourceCon
QString filePath{m_pathCache.sourcePath(sourceId)};
environment.loadFile(
filePath,
filePath,
sourceContent,
QDateTime{},
QQmlJS::Dom::FileToLoad::fromMemory(environment.ownerAs<QQmlJS::Dom::DomEnvironment>(),
filePath,
sourceContent),
[&](QmlDom::Path, const QmlDom::DomItem &, const QmlDom::DomItem &newItems) {
items = newItems;
},