From 4b5a7b15fc6d3650c8e9b7bf619804a0a953eeba Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Thu, 12 Sep 2013 10:53:20 +0200 Subject: [new compiler] Implement proper type resolution Collect all references to unknown types after parsing, re-use the existing code in QQmlTypeLoader to resolve them and finally use the resolved references map in the QQmlObjectCreator instead of the type name cache directly. Change-Id: I8b83af4f8852e79c33985457081c024358bb9622 Reviewed-by: Lars Knoll --- src/qml/qml/qqmlcompiler_p.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/qml/qml/qqmlcompiler_p.h') diff --git a/src/qml/qml/qqmlcompiler_p.h b/src/qml/qml/qqmlcompiler_p.h index ca825a923d..ac304278ab 100644 --- a/src/qml/qml/qqmlcompiler_p.h +++ b/src/qml/qml/qqmlcompiler_p.h @@ -110,7 +110,12 @@ public: QQmlPropertyCache *propertyCache() const; QQmlPropertyCache *createPropertyCache(QQmlEngine *); }; + // --- old compiler: QList types; + // --- new compiler: + // map from name index + QHash resolvedTypes; + // --- struct V8Program { V8Program(const QByteArray &p, QQmlCompiledData *c) -- cgit v1.2.3