slint/internal/compiler/passes
Tobias Hunger 93f72b8c99
Some checks are pending
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
CI / files-changed (push) Waiting to run
CI / build_and_test (--exclude bevy-example, ubuntu-22.04, 1.82) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, --exclude bevy-example, windows-2022, 1.82) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, macos-14, stable) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, beta) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, stable) (push) Blocked by required conditions
CI / build_and_test (ubuntu-22.04, nightly) (push) Blocked by required conditions
CI / node_test (macos-14) (push) Blocked by required conditions
CI / node_test (ubuntu-22.04) (push) Blocked by required conditions
CI / node_test (windows-2022) (push) Blocked by required conditions
CI / python_test (macos-14) (push) Blocked by required conditions
CI / python_test (ubuntu-22.04) (push) Blocked by required conditions
CI / python_test (windows-2022) (push) Blocked by required conditions
CI / cpp_test_driver (macos-13) (push) Blocked by required conditions
CI / cpp_test_driver (ubuntu-22.04) (push) Blocked by required conditions
CI / cpp_test_driver (windows-2022) (push) Blocked by required conditions
CI / cpp_cmake (macos-14, 1.82) (push) Blocked by required conditions
CI / cpp_cmake (ubuntu-22.04, stable) (push) Blocked by required conditions
CI / cpp_cmake (windows-2022, nightly) (push) Blocked by required conditions
CI / cpp_package_test (push) Blocked by required conditions
CI / vsce_build_test (push) Blocked by required conditions
CI / mcu (pico-st7789, thumbv6m-none-eabi) (push) Blocked by required conditions
CI / mcu (pico2-st7789, thumbv8m.main-none-eabihf) (push) Blocked by required conditions
CI / mcu (stm32h735g, thumbv7em-none-eabihf) (push) Blocked by required conditions
CI / mcu-embassy (push) Blocked by required conditions
CI / ffi_32bit_build (push) Blocked by required conditions
CI / docs (push) Blocked by required conditions
CI / wasm (push) Blocked by required conditions
CI / wasm_demo (push) Blocked by required conditions
CI / tree-sitter (push) Blocked by required conditions
CI / updater_test (0.3.0) (push) Blocked by required conditions
CI / fmt_test (push) Blocked by required conditions
CI / esp-idf-quick (push) Blocked by required conditions
CI / android (push) Blocked by required conditions
CI / miri (push) Blocked by required conditions
CI / test-figma-inspector (push) Blocked by required conditions
core: Fix the component container
This fixes the contents of the `n`-th repeater inside the
`ComponentContainer` to also show up in the `n`-th repeater *after*
the `ComponentContainer`.

The ComponentContainer is lowered to a Comonent Container and a
dynamic tree node. The tree node is managed manually and I messed
up the repeater indices since there were no entries in the repeater
array for the embedded components. That mad things hard to keep
consistent as components get merged.

This chnages that: It lowers a Component Container to Something like this:

```slint
    ComponentContainer {
        if false: Emtpy {}
    }
```

This way the standard mechanismns make sure we have something to put into
the repeater list and that unscrews the indices, saving a bit of code along
the way.

The inserted repeated node is still marked as `is_component_placeholder`, so
that we can wire it up as needed.
2025-06-05 13:48:16 +02:00
..
apply_default_properties_from_style.rs Reduce SmolStr <-> &str conversions and copies (#6688) 2024-11-19 10:07:16 +01:00
binding_analysis.rs Change the new error that detects binding loop through the window into a warning 2025-06-02 19:01:47 +02:00
border_radius.rs Reduce SmolStr <-> &str conversions and copies (#6688) 2024-11-19 10:07:16 +01:00
check_expressions.rs Refactoring: get rid in the callable in the Expression tree 2025-01-24 20:26:35 +01:00
check_public_api.rs compiler: process the import a bit differently 2024-11-14 14:35:22 +01:00
check_rotation.rs Auto-fixed clippy::unnecessary_map_or 2025-02-07 09:02:31 +01:00
clip.rs Auto-fixed clippy::unnecessary_map_or 2025-02-07 09:02:31 +01:00
collect_custom_fonts.rs Refactoring: get rid in the callable in the Expression tree 2025-01-24 20:26:35 +01:00
collect_globals.rs Experimental support for MenuBar 2024-11-20 09:25:37 +01:00
collect_init_code.rs Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
collect_structs_and_enums.rs Refactor: use Struct instead of Type for the type in a Expression::Struct 2025-02-03 10:19:30 +01:00
collect_subcomponents.rs Experimental support for MenuBar 2024-11-20 09:25:37 +01:00
compile_paths.rs Path: use the Display instead of the Debug error for path 2025-06-02 18:19:44 +02:00
const_propagation.rs SQUASH: Rework the element id to be a hash based on filename 2025-04-09 13:52:29 +02:00
deduplicate_property_read.rs Compiler: remove more indeterminism in the order of statements 2025-02-15 18:53:44 +01:00
default_geometry.rs Auto-fixed clippy::needless_borrow 2025-02-07 09:02:45 +01:00
embed_glyphs.rs Clean up cfgs for Apple operating systems 2025-05-09 20:54:47 +02:00
embed_images.rs compiler: Use BTreeMap at a few more place to help with determinism of the output 2025-02-15 18:53:44 +01:00
ensure_window.rs Allow to have builtin item function to return a value 2025-03-31 14:06:24 +02:00
flickable.rs compiler: Add a struct to hold a ChildrenInsertionPoint 2025-05-27 10:49:26 +02:00
focus_handling.rs compiler: Add a DebugHook expression 2025-04-09 13:52:29 +02:00
generate_item_indices.rs core: Fix the component container 2025-06-05 13:48:16 +02:00
infer_aliases_types.rs compiler: Add a DebugHook expression 2025-04-09 13:52:29 +02:00
inject_debug_hooks.rs SQUASH: Rework the element id to be a hash based on filename 2025-04-09 13:52:29 +02:00
inlining.rs compiler: Add a struct to hold a ChildrenInsertionPoint 2025-05-27 10:49:26 +02:00
lower_absolute_coordinates.rs compiler: Fix materialize of absolute-position in timer callback 2025-05-26 15:44:11 +02:00
lower_accessibility.rs compiler: Add a DebugHook expression 2025-04-09 13:52:29 +02:00
lower_component_container.rs core: Fix the component container 2025-06-05 13:48:16 +02:00
lower_layout.rs SQUASH: Rework the element id to be a hash based on filename 2025-04-09 13:52:29 +02:00
lower_menus.rs Menubar: fix native menus 2025-04-23 07:29:14 +02:00
lower_platform.rs Add Platform.os as well as a rudimentary test 2025-05-06 13:06:27 +02:00
lower_popups.rs compiler: Add a struct to hold a ChildrenInsertionPoint 2025-05-27 10:49:26 +02:00
lower_property_to_element.rs Auto-fixed clippy::needless_borrow 2025-02-07 09:02:45 +01:00
lower_shadows.rs Fix all format arg inlining 2025-02-06 10:16:20 +01:00
lower_states.rs Transition: Introduce in-out to allow writing symmetry animation (#8509) 2025-05-26 09:17:22 +02:00
lower_tabwidget.rs Fix all format arg inlining 2025-02-06 10:16:20 +01:00
lower_text_input_interface.rs Auto-fixed clippy::unnecessary_map_or 2025-02-07 09:02:31 +01:00
lower_timers.rs compiler: Add a struct to hold a ChildrenInsertionPoint 2025-05-27 10:49:26 +02:00
materialize_fake_properties.rs compiler: fix materialize_fake_properties change 2025-02-21 11:16:00 +01:00
move_declarations.rs MenuItem with for and if 2025-01-30 10:08:22 +01:00
optimize_useless_rectangles.rs Auto-fixed clippy::unnecessary_map_or 2025-02-07 09:02:31 +01:00
purity_check.rs Refactoring: get rid in the callable in the Expression tree 2025-01-24 20:26:35 +01:00
remove_aliases.rs Fix change handler with callback 2025-03-20 21:34:52 +01:00
remove_return.rs Compiler: Fix generated invalid expressions in remove_return pass 2025-05-23 12:28:57 +02:00
remove_unused_properties.rs Auto-fixed clippy::unnecessary_map_or 2025-02-07 09:02:31 +01:00
repeater_component.rs MenuItem with for and if 2025-01-30 10:08:22 +01:00
resolve_native_classes.rs Use SmolStr in more places of the compiler infrastructure 2024-10-17 18:04:58 +02:00
resolving.rs live-preview: Get better basic values for the property editor 2025-06-02 13:28:25 +02:00
unique_id.rs Auto-fixed clippy::needless_borrow 2025-02-07 09:02:45 +01:00
visible.rs Auto-fixed clippy::unnecessary_map_or 2025-02-07 09:02:31 +01:00
z_order.rs compiler: Add a DebugHook expression 2025-04-09 13:52:29 +02:00