mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
compiler: Add a DebugHook expression
You can not create this expression manually, but there is a pass in the compiler that adds it to all set properties in a compilation run. All it does is basically associate an id with an expression, so that we can then in a later step have the interpreter do something with that information. Apart from that, it tries to be as transparent as possible. The LLR lowering removes that expression again, just so we can be sure it does not end up in the generated live code.
This commit is contained in:
parent
e613ffb319
commit
aaeb4a0df5
16 changed files with 147 additions and 23 deletions
|
@ -148,6 +148,9 @@ pub struct CompilerConfiguration {
|
|||
/// Generate debug information for elements (ids, type names)
|
||||
pub debug_info: bool,
|
||||
|
||||
/// Generate debug hooks to inspect/override properties.
|
||||
pub debug_hooks: bool,
|
||||
|
||||
pub components_to_generate: ComponentSelection,
|
||||
|
||||
#[cfg(feature = "software-renderer")]
|
||||
|
@ -226,6 +229,7 @@ impl CompilerConfiguration {
|
|||
translation_domain: None,
|
||||
cpp_namespace,
|
||||
debug_info,
|
||||
debug_hooks: false,
|
||||
components_to_generate: ComponentSelection::ExportedWindows,
|
||||
#[cfg(feature = "software-renderer")]
|
||||
font_cache: Default::default(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue