slint/internal/compiler/passes
Olivier Goffart ac8fd60091 Fix regression with empty array
Regression noticed in this line:
3f97d98bff/ui/tabs/downloads.slint (L77)

The following used to work:

```slint
import { Button, VerticalBox } from "std-widgets.slint";
export component Demo {
    in property <[int]> mods;
    VerticalBox {
        alignment: start;
        for xxx in true ? mods : [] : HorizontalLayout { alignment: center; Button { text: "OK!"; } }
    }
}
```

But we fixed array conversion and this caused a regression with empty
array
2023-11-01 11:30:59 +01:00
..
apply_default_properties_from_style.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
binding_analysis.rs janitor: Go over our spell checking setup 2023-10-16 09:01:51 +02:00
check_expressions.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
check_public_api.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
check_rotation.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
clip.rs WIP: Add item_geometry to the ComponentVTable 2023-09-13 16:08:37 +02:00
collect_custom_fonts.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
collect_globals.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
collect_init_code.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
collect_structs_and_enums.rs Fix named exports in native code (#3602) 2023-10-05 16:41:10 +02:00
collect_subcomponents.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
compile_paths.rs Warn when using a Path with the software renderer 2023-08-31 12:37:48 +02:00
const_propagation.rs compiler: Simplify struct access expression of constants after struct-cast 2023-10-12 14:21:08 +02:00
deduplicate_property_read.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
default_geometry.rs Don't steal the x and y properties for dummy parents 2023-10-21 07:30:46 +02:00
embed_glyphs.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
embed_images.rs compiler: Implement resource URL remapping 2023-10-12 21:41:26 +02:00
ensure_window.rs compiler: Add layout information the the Element 2023-10-24 15:49:12 +02:00
flickable.rs WIP: Add item_geometry to the ComponentVTable 2023-09-13 16:08:37 +02:00
focus_item.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
generate_item_indices.rs Change item indices from usize to u32 2023-09-12 08:53:58 +02:00
infer_aliases_types.rs Fix compiler panic when trying to resolve aliases in invalid import 2023-10-16 16:37:49 +02:00
inlining.rs compiler: Add layout information the the Element 2023-10-24 15:49:12 +02:00
lower_absolute_coordinates.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
lower_accessibility.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
lower_component_container.rs Don't steal the x and y properties for dummy parents 2023-10-21 07:30:46 +02:00
lower_layout.rs Layout: when using a fixed window size, dissociate the WiondowItem's size with the slint size 2023-10-27 17:45:46 +02:00
lower_popups.rs Fix PopupWindow positioning 2023-09-13 16:08:37 +02:00
lower_property_to_element.rs WIP: Add item_geometry to the ComponentVTable 2023-09-13 16:08:37 +02:00
lower_shadows.rs Fix drop shadow 2023-10-24 16:01:33 +02:00
lower_states.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
lower_tabwidget.rs Fix generation of geometry prop for some primitives 2023-09-13 16:08:37 +02:00
lower_text_input_interface.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
materialize_fake_properties.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
move_declarations.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
optimize_useless_rectangles.rs Fix optimization pass removing rectangle that have a x and y set 2023-09-13 16:08:37 +02:00
purity_check.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
remove_aliases.rs Fix alias to externaly modified property not being marked as such 2023-08-22 16:20:13 +02:00
remove_return.rs Fix slint compiler panic in chiptrack 2023-11-01 09:51:33 +01:00
remove_unused_properties.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
repeater_component.rs compiler: Add layout information the the Element 2023-10-24 15:49:12 +02:00
resolve_native_classes.rs fix resolve_native_classes pass 2023-09-13 16:08:37 +02:00
resolving.rs Fix regression with empty array 2023-11-01 11:30:59 +01:00
unique_id.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
visible.rs Don't steal the x and y properties for dummy parents 2023-10-21 07:30:46 +02:00
z_order.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00