aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qqmltypecompiler_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2016-06-20 10:26:40 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2016-07-15 20:31:51 +0000
commit8f19045ef5d308231716ddcb62a80cc43ebb2dd7 (patch)
treead69181c5d22d4366799632bd77ea57500d63a47 /src/qml/compiler/qqmltypecompiler_p.h
parentbf5f97e6c6900535a7131c6a26415459bfaca774 (diff)
Split out creation of alias properties in the property caches
Similar to the regular property cache creation code, this also has to become a template function so that it can be run on the compilation units loaded from disk in the future. What is shared between the code path of a fresh compilation vs. re-use of a unit from disk is the code to propagate the CompiledData::Alias entries into entries in the property cache. The code for iterating through the component spaces and resolving the alias references is not shared. Change-Id: I04c2a5575310400156b457ae7b709cffecb7455e 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.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/qml/compiler/qqmltypecompiler_p.h b/src/qml/compiler/qqmltypecompiler_p.h
index 0b078fd642..9f1a09b35c 100644
--- a/src/qml/compiler/qqmltypecompiler_p.h
+++ b/src/qml/compiler/qqmltypecompiler_p.h
@@ -265,7 +265,7 @@ public:
protected:
void findAndRegisterImplicitComponents(const QmlIR::Object *obj, QQmlPropertyCache *propertyCache);
bool collectIdsAndAliases(int objectIndex);
- bool resolveAliases();
+ bool resolveAliases(int componentIndex);
void propertyDataForAlias(QmlIR::Alias *alias, int *type, quint32 *propertyFlags);
enum AliasResolutionResult {
@@ -275,7 +275,6 @@ protected:
};
AliasResolutionResult resolveAliasesInObject(int objectIndex, QQmlCompileError *error);
- void addAliasesToPropertyCache(int objectIndex);
QQmlEnginePrivate *enginePrivate;
QQmlJS::MemoryPool *pool;
@@ -286,7 +285,6 @@ protected:
// indices of the objects that are actually Component {}
QVector<quint32> componentRoots;
- int _componentIndex;
QHash<int, int> _idToObjectIndex;
QVector<int> _objectsWithAliases;