diff options
author | Simon Hausmann <[email protected]> | 2013-09-19 13:32:13 +0200 |
---|---|---|
committer | The Qt Project <[email protected]> | 2013-09-20 14:27:49 +0200 |
commit | 3123a22ae66016a0d9cd600dbb6f636fd29fc312 (patch) | |
tree | de483a714d4ac3234de4b13e3c6bb00d437d0a32 /src/qml/compiler/qv4compileddata_p.h | |
parent | 4c953b1592956b712eca60eec070868a567c04c1 (diff) |
[new compiler] Initial support for alias properties
Aliases are resolved at "compile time", not rough JS expressions. This is
done right after we determined the scope of components in the QML file,
which is also where we collect object ids (that aliases use).
Change-Id: If5702337f2cca08d17f196c3b2fde3bbdfea5b3c
Reviewed-by: Lars Knoll <[email protected]>
Diffstat (limited to 'src/qml/compiler/qv4compileddata_p.h')
-rw-r--r-- | src/qml/compiler/qv4compileddata_p.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4compileddata_p.h b/src/qml/compiler/qv4compileddata_p.h index 774cd70608..8481e17857 100644 --- a/src/qml/compiler/qv4compileddata_p.h +++ b/src/qml/compiler/qv4compileddata_p.h @@ -329,7 +329,11 @@ struct Property quint32 nameIndex; quint32 type; - quint32 customTypeNameIndex; + union { + quint32 customTypeNameIndex; // If type >= Custom + quint32 aliasIdValueIndex; // If type == Alias + }; + quint32 aliasPropertyValueIndex; quint32 flags; // readonly Location location; }; |