mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
LLR: peliminary support for multiple public components
There currently still can only be one because the passes expect that, but now the LLR and generator should be ready to accept multiple public component later
This commit is contained in:
parent
ffbd8a6bfb
commit
d0ed0438ce
10 changed files with 131 additions and 110 deletions
|
@ -94,10 +94,7 @@ pub fn generate(
|
|||
)); // Perhaps byte code in the future?
|
||||
}
|
||||
OutputFormat::Llr => {
|
||||
let root = crate::llr::lower_to_item_tree::lower_to_item_tree(
|
||||
&doc.root_component,
|
||||
compiler_config,
|
||||
);
|
||||
let root = crate::llr::lower_to_item_tree::lower_to_item_tree(&doc, compiler_config);
|
||||
let mut output = String::new();
|
||||
crate::llr::pretty_print::pretty_print(&root, &mut output).unwrap();
|
||||
write!(destination, "{output}")?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue