slint/sixtyfps_compiler/tests/syntax/basic/for.60
Olivier Goffart 53c3e6a279 WIP: introduce the new llr module (Low Level Representation)
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
2022-01-12 16:22:35 +01:00

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 {}
}
}