Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlcustomparser_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | class QQmlPropertyValidator; | - |
6 | class QQmlEnginePrivate; | - |
7 | - | |
8 | class __attribute__((visibility("default"))) QQmlCustomParser | - |
9 | { | - |
10 | public: | - |
11 | enum Flag { | - |
12 | NoFlag = 0x00000000, | - |
13 | AcceptsAttachedProperties = 0x00000001, | - |
14 | AcceptsSignalHandlers = 0x00000002 | - |
15 | }; | - |
16 | typedef QFlags<Flag> Flags; | - |
17 | - | |
18 | QQmlCustomParser() : engine(nullptr), validator(nullptr), m_flags(NoFlag) {} executed 4 times by 2 tests: end of block Executed by:
| 4 |
19 | QQmlCustomParser(Flags f) : engine(nullptr), validator(nullptr), m_flags(f) {} executed 386 times by 133 tests: end of block Executed by:
| 386 |
20 | virtual ~QQmlCustomParser() {} | - |
21 | - | |
22 | void clearErrors(); | - |
23 | Flags flags() const { return executed 941 times by 32 tests: m_flags;return m_flags; Executed by:
executed 941 times by 32 tests: }return m_flags; Executed by:
| 941 |
24 | - | |
25 | virtual void verifyBindings(const QV4::CompiledData::Unit *, const QList<const QV4::CompiledData::Binding *> &) = 0; | - |
26 | virtual void applyBindings(QObject *, QV4::CompiledData::CompilationUnit *, const QList<const QV4::CompiledData::Binding *> &) = 0; | - |
27 | - | |
28 | QVector<QQmlCompileError> errors() const { return executed 926 times by 30 tests: exceptions;return exceptions; Executed by:
executed 926 times by 30 tests: }return exceptions; Executed by:
| 926 |
29 | - | |
30 | protected: | - |
31 | void error(const QV4::CompiledData::Binding *binding, const QString& description) | - |
32 | { error(binding->location, description); } executed 22 times by 2 tests: end of block Executed by:
| 22 |
33 | void error(const QV4::CompiledData::Object *object, const QString& description) | - |
34 | { error(object->location, description); } executed 4 times by 2 tests: end of block Executed by:
| 4 |
35 | void error(const QV4::CompiledData::Location &location, const QString& description); | - |
36 | - | |
37 | int evaluateEnum(const QByteArray&, bool *ok) const; | - |
38 | - | |
39 | const QMetaObject *resolveType(const QString&) const; | - |
40 | - | |
41 | private: | - |
42 | QVector<QQmlCompileError> exceptions; | - |
43 | QQmlEnginePrivate *engine; | - |
44 | const QQmlPropertyValidator *validator; | - |
45 | Flags m_flags; | - |
46 | QBiPointer<const QQmlImports, QQmlTypeNameCache> imports; | - |
47 | friend class QQmlPropertyValidator; | - |
48 | friend class QQmlObjectCreator; | - |
49 | }; | - |
50 | constexpr inline QFlags<QQmlCustomParser::Flags::enum_type> operator|(QQmlCustomParser::Flags::enum_type f1, QQmlCustomParser::Flags::enum_type f2) noexcept { return QFlags<QQmlCustomParser::Flags::enum_type>(f1) | f2; } constexpr inline QFlags<QQmlCustomParser::Flags::enum_type> operator|(QQmlCustomParser::Flags::enum_type f1, QFlags<QQmlCustomParser::Flags::enum_type> f2) noexcept { return f2 | f1; } constexpr inline QIncompatibleFlag operator|(QQmlCustomParser::Flags::enum_type f1, int f2) noexcept { return QIncompatibleFlag(int(f1) | f2); } | - |
51 | - | |
52 | - | |
53 | - | |
54 | - | |
55 | - | |
56 | - | |
57 | - | |
Switch to Source code | Preprocessed file |