mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00

The main thing here is that the Component are in different data structure depending on whether they are sub-component global component or repeated component Then the properties at are the right place and there will be no more lookup in the base. The PropertyReference knows how to access which property via which element and such. The idea is that it will be easier to lower from this representation than what we currently do in each language backend. This commit is still WIP, it is far from finished
23 lines
404 B
Text
23 lines
404 B
Text
// Copyright © SixtyFPS GmbH <info@sixtyfps.io>
|
|
// SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)
|
|
|
|
|
|
SuperSimple := Rectangle {
|
|
background: green;
|
|
|
|
for xx Text {}
|
|
// ^error{Invalid 'for' syntax: there should be a 'in' token}
|
|
|
|
|
|
for xx in zz: Hello {
|
|
Rectangle {}
|
|
}
|
|
|
|
Image {
|
|
}
|
|
|
|
for xx[idx] in zz: Hello {
|
|
Rectangle {}
|
|
}
|
|
|
|
}
|