aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmljsscope_p.h
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2021-05-11 17:36:08 +0200
committerMaximilian Goldstein <max.goldstein@qt.io>2021-05-14 16:39:40 +0200
commit04c2546b82d0609fcaab2e792e2b1e0794dca9eb (patch)
tree807df2b256daab607af986e55c4731dbd5caf3bd /src/qmlcompiler/qqmljsscope_p.h
parentf3ed98bf09885795de160468fd615c9e07d5ed5d (diff)
qmllint: Add inline component support
Adds support for inline components for qmllint with a few things not working yet: - Two inline components referencing each other - Using inline components before they are declared These two issues require a larger overhaul of qmllint as a whole and will be addressed in a different change. Change-Id: I2834702c21a8eb728db4709d6f475c33796b3e4d Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljsscope_p.h')
-rw-r--r--src/qmlcompiler/qqmljsscope_p.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qmlcompiler/qqmljsscope_p.h b/src/qmlcompiler/qqmljsscope_p.h
index e3463c5192..f61cd7b2eb 100644
--- a/src/qmlcompiler/qqmljsscope_p.h
+++ b/src/qmlcompiler/qqmljsscope_p.h
@@ -114,7 +114,8 @@ public:
Singleton = 0x4,
Script = 0x8,
CustomParser = 0x10,
- Array = 0x20
+ Array = 0x20,
+ InlineComponent = 0x40
};
Q_DECLARE_FLAGS(Flags, Flag)
Q_FLAGS(Flags);
@@ -274,6 +275,7 @@ public:
bool isScript() const { return m_flags & Script; }
bool hasCustomParser() const { return m_flags & CustomParser; }
bool isArrayScope() const { return m_flags & Array; }
+ bool isInlineComponent() const { return m_flags & InlineComponent; }
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); }
@@ -283,6 +285,7 @@ public:
m_flags.setFlag(CustomParser, v);;
}
void setIsArrayScope(bool v) { m_flags.setFlag(Array, v); }
+ void setIsInlineComponent(bool v) { m_flags.setFlag(InlineComponent, v); }
void setAccessSemantics(AccessSemantics semantics) { m_semantics = semantics; }
AccessSemantics accessSemantics() const { return m_semantics; }