diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-10-26 12:44:58 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-10-26 16:57:00 +0100 |
commit | 3713ca8baf6d729b86cf46511d498e5a7e78c166 (patch) | |
tree | 4b0596b7ae9a7ad2d5eb72f91619791d1f46007f /src | |
parent | 1c594efacc3290437b0c20723746fd755efecd02 (diff) |
QmlCompiler: Add method to retrieve addressable scope from visitor
Adressable scopes are the ones with an id.
Change-Id: I4975248aa920f0d567b5b5ccc8ba18a2fdd91e13
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/qmlcompiler/qqmljsimportvisitor_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmljsimportvisitor_p.h b/src/qmlcompiler/qqmljsimportvisitor_p.h index 1f26536923..b81b8e8575 100644 --- a/src/qmlcompiler/qqmljsimportvisitor_p.h +++ b/src/qmlcompiler/qqmljsimportvisitor_p.h @@ -56,6 +56,7 @@ public: QQmlJSScope::Ptr result() const; QList<QQmlJS::DiagnosticMessage> errors() const { return m_errors; } QHash<QString, QQmlJSScope::ConstPtr> imports() const { return m_rootScopeImports; } + QHash<QString, QQmlJSScope::ConstPtr> addressableScopes() const { return m_scopesById; } protected: bool visit(QQmlJS::AST::UiProgram *) override; |