Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/compiler/qqmlpropertyvalidator_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | class QQmlPropertyValidator | - |
5 | { | - |
6 | public: static inline QString tr(const char *sourceText, const char *disambiguation = nullptr, int n = -1) { return QCoreApplication::translate("QQmlPropertyValidator", sourceText, disambiguation, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *sourceText, const char *disambiguation = nullptr, int n = -1) { return QCoreApplication::translate("QQmlPropertyValidator", sourceText, disambiguation, n); } private: | - |
7 | public: | - |
8 | QQmlPropertyValidator(QQmlEnginePrivate *enginePrivate, const QQmlImports &imports, const QQmlRefPointer<QV4::CompiledData::CompilationUnit> &compilationUnit); | - |
9 | - | |
10 | QVector<QQmlCompileError> validate(); | - |
11 | - | |
12 | private: | - |
13 | QVector<QQmlCompileError> validateObject(int objectIndex, const QV4::CompiledData::Binding *instantiatingBinding, bool populatingValueTypeGroupProperty = false) const; | - |
14 | QQmlCompileError validateLiteralBinding(QQmlPropertyCache *propertyCache, QQmlPropertyData *property, const QV4::CompiledData::Binding *binding) const; | - |
15 | QQmlCompileError validateObjectBinding(QQmlPropertyData *property, const QString &propertyName, const QV4::CompiledData::Binding *binding) const; | - |
16 | - | |
17 | bool canCoerce(int to, QQmlPropertyCache *fromMo) const; | - |
18 | - | |
19 | __attribute__ ((__warn_unused_result__)) QVector<QQmlCompileError> recordError(const QV4::CompiledData::Location &location, const QString &description) const; | - |
20 | __attribute__ ((__warn_unused_result__)) QVector<QQmlCompileError> recordError(const QQmlCompileError &error) const; | - |
21 | QString stringAt(int index) const { return executed 284873 times by 141 tests: qmlUnit->stringAt(index);return qmlUnit->stringAt(index); Executed by:
executed 284873 times by 141 tests: }return qmlUnit->stringAt(index); Executed by:
| 284873 |
22 | - | |
23 | QQmlEnginePrivate *enginePrivate; | - |
24 | QQmlRefPointer<QV4::CompiledData::CompilationUnit> compilationUnit; | - |
25 | const QQmlImports &imports; | - |
26 | const QV4::CompiledData::Unit *qmlUnit; | - |
27 | const QV4::CompiledData::ResolvedTypeReferenceMap &resolvedTypes; | - |
28 | const QQmlPropertyCacheVector &propertyCaches; | - |
29 | - | |
30 | QVector<QV4::CompiledData::BindingPropertyData> * const bindingPropertyDataPerObject; | - |
31 | }; | - |
32 | - | |
33 | - | |
Switch to Source code | Preprocessed file |