OpenCoverage

qqmlcustomparser_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlcustomparser_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5class QQmlPropertyValidator;-
6class QQmlEnginePrivate;-
7-
8class __attribute__((visibility("default"))) QQmlCustomParser-
9{-
10public:-
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:
  • tst_examples
  • tst_qqmlstatemachine
4
19 QQmlCustomParser(Flags f) : engine(nullptr), validator(nullptr), m_flags(f) {}
executed 386 times by 133 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
386
20 virtual ~QQmlCustomParser() {}-
21-
22 void clearErrors();-
23 Flags flags() const { return
executed 941 times by 32 tests: return m_flags;
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • ...
m_flags;
executed 941 times by 32 tests: return m_flags;
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • ...
}
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: return exceptions;
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
exceptions;
executed 926 times by 30 tests: return exceptions;
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
}
926
29-
30protected:-
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:
  • tst_qqmlconnections
  • tst_qqmllistmodel
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:
  • tst_qqmllistmodel
  • tst_qquickstates
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-
41private:-
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};-
50constexpr 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 codePreprocessed file

Generated by Squish Coco 4.2.0