diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-11-25 14:53:52 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-11-26 08:27:21 +0100 |
commit | 63304384c8333c2aead5243c926f4f1b8be4dabf (patch) | |
tree | 4db7f59380afe910c97eaa4dc350327e21daf428 /src/qmlcompiler/qqmljsimportvisitor.cpp | |
parent | 473ce18934d067dd3fcfd5ac4c1e8d54235497c5 (diff) |
QmlCompiler: Mark the global scope as composite
All non-C++ scopes are composite. Now that we can return the global
scope, when parsing a script, this matters.
Change-Id: I6c9a17bdd3acf80fce728b1df5c3d9e66035bd33
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljsimportvisitor.cpp')
-rw-r--r-- | src/qmlcompiler/qqmljsimportvisitor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmljsimportvisitor.cpp b/src/qmlcompiler/qqmljsimportvisitor.cpp index c4f99f48b2..b0fe5dc1ba 100644 --- a/src/qmlcompiler/qqmljsimportvisitor.cpp +++ b/src/qmlcompiler/qqmljsimportvisitor.cpp @@ -45,6 +45,7 @@ QQmlJSImportVisitor::QQmlJSImportVisitor( , m_importer(importer) { m_globalScope = m_currentScope; + m_currentScope->setIsComposite(true); } void QQmlJSImportVisitor::enterEnvironment(QQmlJSScope::ScopeType type, const QString &name, |