slint/internal/compiler/llr
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
..
optim_passes Basic Slint accessibility support (#1294) 2022-06-08 20:42:10 +02:00
expression.rs Don't optimize const state property 2022-06-27 16:25:57 +02:00
item_tree.rs Basic Slint accessibility support (#1294) 2022-06-08 20:42:10 +02:00
lower_expression.rs Implements @radial-gradient(circle, ...) 2022-05-19 14:07:20 +02:00
lower_to_item_tree.rs Basic Slint accessibility support (#1294) 2022-06-08 20:42:10 +02:00
pretty_print.rs Don't optimize const state property 2022-06-27 16:25:57 +02:00