slint/internal/compiler
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
..
generator Don't optimize const state property 2022-06-27 16:25:57 +02:00
LICENSES Fix LICENSES symlinks 2022-02-09 17:05:47 +01:00
llr Don't optimize const state property 2022-06-27 16:25:57 +02:00
parser LSP: Fix auto-completion of @-macros 2022-05-19 19:22:56 +02:00
parser-test-macro Bump version number to 0.2.5 2022-05-09 16:16:00 +00:00
passes Don't optimize const state property 2022-06-27 16:25:57 +02:00
tests Basic Slint accessibility support (#1294) 2022-06-08 20:42:10 +02:00
widgets fluent TabWidget: ensure the minimum width is the one of the tabbar 2022-06-27 10:07:54 +02:00
build.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
builtin_macros.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
builtins.slint Basic Slint accessibility support (#1294) 2022-06-08 20:42:10 +02:00
Cargo.toml Bump resvg/usvg versions 2022-06-12 10:58:42 +02:00
diagnostics.rs LSP: fetch the file content from cache instead of from disk to compute the line number 2022-06-02 21:45:50 +02:00
embedded_resources.rs swrenderer: Optimize image drawing by using premultiplied colors 2022-06-14 11:23:02 +02:00
expression_tree.rs Implements @radial-gradient(circle, ...) 2022-05-19 14:07:20 +02:00
fileaccess.rs Scan for style files in the include directories 2022-02-15 13:55:50 +01:00
generator.rs Mark constant properties of parent native type as such 2022-02-18 17:40:17 +01:00
langtype.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
layout.rs C++: implement Window::on_close_requested 2022-03-17 14:49:12 +01:00
lexer.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
lib.rs Basic Slint accessibility support (#1294) 2022-06-08 20:42:10 +02:00
literals.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
llr.rs Fix a bunch of documentation warnings 2022-04-26 12:47:34 +02:00
load_builtins.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
lookup.rs VSCode web extension: load files from the vscode API 2022-06-02 16:21:07 +02:00
namedreference.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
object_tree.rs Basic Slint accessibility support (#1294) 2022-06-08 20:42:10 +02:00
parser.rs Fix compiler warning about usage of deprecated method 2022-06-04 10:23:32 +02:00
passes.rs mcu: Fix missing glyphs in the slide puzzle 2022-06-16 15:21:01 +02:00
README.md Change the Url from sixtyfps.io to slint-ui.com 2022-02-08 08:52:46 +01:00
typeloader.rs VSCode web extension: load files from the vscode API 2022-06-02 16:21:07 +02:00
typeregister.rs Basic Slint accessibility support (#1294) 2022-06-08 20:42:10 +02:00

The Slint Compiler Library

NOTE: This library is an internal crate of the Slint project. This crate should not be used directly by applications using Slint. You should use the slint crate instead.

WARNING: This crate does not follow the semver convention for versioning and can only be used with version = "=x.y.z" in Cargo.toml.