diff options
author | Maximilian Goldstein <max.goldstein@qt.io> | 2021-04-30 11:56:05 +0200 |
---|---|---|
committer | Maximilian Goldstein <max.goldstein@qt.io> | 2021-04-30 12:03:51 +0200 |
commit | 5f0e3d4ea76fccf761926da7ab041b9da3bffc4a (patch) | |
tree | cc90df1d9f6e1d4a4940c3ee3eec62d714bb984f /src/qmlcompiler/qqmljsscope_p.h | |
parent | 30f9affd163dbd615a8e842ca837bf31c7060b36 (diff) |
qmllint: Handle UiArrayBindings properly
This doesn't actually properly process them yet but at least it's a step in the right direction and makes sure array elements aren't just added to the parent scope.
Task-number: QTBUG-93358
Change-Id: I3d400abd10df032ee16c9c1dfc13562d36c22169
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljsscope_p.h')
-rw-r--r-- | src/qmlcompiler/qqmljsscope_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmljsscope_p.h b/src/qmlcompiler/qqmljsscope_p.h index edca6bf0c3..e03c2c1342 100644 --- a/src/qmlcompiler/qqmljsscope_p.h +++ b/src/qmlcompiler/qqmljsscope_p.h @@ -114,6 +114,7 @@ public: Singleton = 0x4, Script = 0x8, CustomParser = 0x10, + Array = 0x20 }; Q_DECLARE_FLAGS(Flags, Flag) Q_FLAGS(Flags); @@ -272,6 +273,7 @@ public: bool isComposite() const { return m_flags & Composite; } bool isScript() const { return m_flags & Script; } bool hasCustomParser() const { return m_flags & CustomParser; } + bool isArrayScope() const { return m_flags & Array; } void setIsSingleton(bool v) { m_flags.setFlag(Singleton, v); } void setIsCreatable(bool v) { m_flags.setFlag(Creatable, v); } void setIsComposite(bool v) { m_flags.setFlag(Composite, v); } @@ -280,6 +282,7 @@ public: { m_flags.setFlag(CustomParser, v);; } + void setIsArrayScope(bool v) { m_flags.setFlag(Array, v); } void setAccessSemantics(AccessSemantics semantics) { m_semantics = semantics; } AccessSemantics accessSemantics() const { return m_semantics; } |