forked from qt-creator/qt-creator
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:
@@ -294,10 +294,9 @@ Storage::Synchronization::Type QmlDocumentParser::parse(const QString &sourceCon
|
|||||||
QString filePath{m_pathCache.sourcePath(sourceId)};
|
QString filePath{m_pathCache.sourcePath(sourceId)};
|
||||||
|
|
||||||
environment.loadFile(
|
environment.loadFile(
|
||||||
|
QQmlJS::Dom::FileToLoad::fromMemory(environment.ownerAs<QQmlJS::Dom::DomEnvironment>(),
|
||||||
filePath,
|
filePath,
|
||||||
filePath,
|
sourceContent),
|
||||||
sourceContent,
|
|
||||||
QDateTime{},
|
|
||||||
[&](QmlDom::Path, const QmlDom::DomItem &, const QmlDom::DomItem &newItems) {
|
[&](QmlDom::Path, const QmlDom::DomItem &, const QmlDom::DomItem &newItems) {
|
||||||
items = newItems;
|
items = newItems;
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user