slint/internal/compiler/passes
Olivier Goffart 9111dbfbce Don't optimize const state property
state info properties are special and cannot simply be inlined or set
(because we need to record the time it was changed and stuff)
So disable the optimization for now.

In fact, what could be done is to remove the state entirely if the state property
is constant. But that change is a bit more involved

This patch does:
 - Don't inline const state property
 - Don't generate a call to .set in the generated code
 - Also allowed to debug the expression with a context from the generator
   (added T generic parameter to the pretty printer)

Fix panic reported in https://github.com/slint-ui/slint/issues/1327#issuecomment-1151244049
2022-06-27 16:25:57 +02:00
..
embed_glyphs Fix glyph embedding on Linux 2022-02-23 12:13:10 +01:00
apply_default_properties_from_style.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
binding_analysis.rs Basic Slint accessibility support (#1294) 2022-06-08 20:42:10 +02:00
check_expressions.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
check_public_api.rs Mark public properties as set 2022-02-16 18:46:37 +01:00
clip.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
collect_custom_fonts.rs Begin rasterizing glyphs for glyph embedding 2022-02-15 15:52:24 +01:00
collect_globals.rs janitor: Remove unnecessary references 2022-05-22 11:59:00 +02:00
collect_structs.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
collect_subcomponents.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
compile_paths.rs Declare .slint enum in one place in i-slint-common 2022-04-14 19:17:48 +02:00
const_propagation.rs Don't optimize const state property 2022-06-27 16:25:57 +02:00
deduplicate_property_read.rs deduplicate_property_read: bail out if there is a write 2022-05-31 14:55:09 +02:00
default_geometry.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
embed_glyphs.rs Fix wasm build 2022-06-16 15:21:01 +02:00
embed_images.rs swrenderer: Optimize image drawing by using premultiplied colors 2022-06-14 11:23:02 +02:00
ensure_window.rs Basic Slint accessibility support (#1294) 2022-06-08 20:42:10 +02:00
flickable.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
focus_item.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
generate_item_indices.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
infer_aliases_types.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
inlining.rs Basic Slint accessibility support (#1294) 2022-06-08 20:42:10 +02:00
lower_accessibility.rs Basic Slint accessibility support (#1294) 2022-06-08 20:42:10 +02:00
lower_layout.rs VSCode web extension: load files from the vscode API 2022-06-02 16:21:07 +02:00
lower_popups.rs Fix a bunch more issue with PopupWindow 2022-04-01 14:06:38 +02:00
lower_property_to_element.rs Add a Layer element that's created when using a layer boolean property 2022-03-21 20:22:43 +01:00
lower_shadows.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
lower_states.rs Properly initialize the default binding of a state to its materialized value 2022-05-06 12:55:42 +02:00
lower_tabwidget.rs VSCode web extension: load files from the vscode API 2022-06-02 16:21:07 +02:00
materialize_fake_properties.rs Fix priority of aliases when default value are involved 2022-05-09 09:30:01 +02:00
move_declarations.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
optimize_useless_rectangles.rs Fix compiler panic when optimizing child of layout 2022-05-13 16:05:15 +02:00
remove_aliases.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
remove_unused_properties.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
repeater_component.rs Basic Slint accessibility support (#1294) 2022-06-08 20:42:10 +02:00
resolve_native_classes.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
resolving.rs Fix gradient interpolation 2022-05-21 12:00:20 +02:00
unique_id.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
visible.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
z_order.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00