QQmlJSImporter: Pass the source location to the result

Change-Id: I8c52efc752fbeae4485d7cc2112d615707e2afd1
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
Ulf Hermann 2020-10-20 11:32:28 +02:00
parent a45e31a42d
commit bf3e56d823
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ QQmlJSScope::Ptr QQmlJSImportVisitor::result() const
result->addEnum(enumerator);
result->resolveTypes(m_rootScopeImports);
result->setSourceLocation(m_qmlRootScope->sourceLocation());
return result;
}