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:
Olivier Goffart 2024-06-15 14:44:11 +02:00 committed by GitHub
parent ffbd8a6bfb
commit d0ed0438ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 131 additions and 110 deletions

View file

@ -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}")?;