aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qqmltypecompiler_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2016-06-15 16:56:56 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2016-06-17 05:30:55 +0000
commit6b60de934bef14b17c05e726cea05b0bef8b8004 (patch)
tree16e622c597ea54ab06bf5a60df4a09f9d8eef408 /src/qml/compiler/qqmltypecompiler_p.h
parent8c10d12be1a219a6bd5bd54499b281551c79c823 (diff)
Separate QQmlPropertyValidator into a standalone file
The type compiler file is getting crowded and this class is destined to be used outside of the scope of the type compiler. Change-Id: I21aff8ee64dbfeb039523518e912ef206637fb41 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/compiler/qqmltypecompiler_p.h')
-rw-r--r--src/qml/compiler/qqmltypecompiler_p.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/qml/compiler/qqmltypecompiler_p.h b/src/qml/compiler/qqmltypecompiler_p.h
index 6fddd37111..b2494212fa 100644
--- a/src/qml/compiler/qqmltypecompiler_p.h
+++ b/src/qml/compiler/qqmltypecompiler_p.h
@@ -299,34 +299,6 @@ private:
bool _seenObjectWithId;
};
-class QQmlPropertyValidator
-{
- Q_DECLARE_TR_FUNCTIONS(QQmlPropertyValidator)
-public:
- QQmlPropertyValidator(QQmlEnginePrivate *enginePrivate, const QQmlImports &imports, QV4::CompiledData::CompilationUnit *compilationUnit);
-
- QVector<QQmlCompileError> validate();
-
-private:
- QVector<QQmlCompileError> validateObject(int objectIndex, const QV4::CompiledData::Binding *instantiatingBinding, bool populatingValueTypeGroupProperty = false) const;
- QQmlCompileError validateLiteralBinding(QQmlPropertyCache *propertyCache, QQmlPropertyData *property, const QV4::CompiledData::Binding *binding) const;
- QQmlCompileError validateObjectBinding(QQmlPropertyData *property, const QString &propertyName, const QV4::CompiledData::Binding *binding) const;
-
- bool canCoerce(int to, QQmlPropertyCache *fromMo) const;
-
- QVector<QQmlCompileError> recordError(const QV4::CompiledData::Location &location, const QString &description) const Q_REQUIRED_RESULT;
- QVector<QQmlCompileError> recordError(const QQmlCompileError &error) const Q_REQUIRED_RESULT;
- QString stringAt(int index) const { return qmlUnit->stringAt(index); }
-
- QQmlEnginePrivate *enginePrivate;
- const QQmlImports &imports;
- const QV4::CompiledData::Unit *qmlUnit;
- const QHash<int, QV4::CompiledData::CompilationUnit::ResolvedTypeReference*> &resolvedTypes;
- const QQmlPropertyCacheVector &propertyCaches;
-
- QVector<QV4::CompiledData::BindingPropertyData> * const bindingPropertyDataPerObject;
-};
-
// ### merge with QtQml::JSCodeGen and operate directly on object->functionsAndExpressions once old compiler is gone.
class QQmlJSCodeGenerator : public QQmlCompilePass
{