mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Update internal/compiler/lib.rs
Co-authored-by: Simon Hausmann <hausmann@gmail.com>
This commit is contained in:
parent
121cda19fd
commit
f62d5e0d4b
1 changed files with 2 additions and 2 deletions
|
@ -185,12 +185,12 @@ pub async fn compile_syntax_node(
|
|||
) -> (object_tree::Document, diagnostics::BuildDiagnostics, typeloader::TypeLoader) {
|
||||
let mut loader = prepare_for_compile(&mut diagnostics, compiler_config);
|
||||
|
||||
let doc_node: parser::syntax_nodes::Document = doc_node.into();
|
||||
|
||||
if diagnostics.has_error() {
|
||||
return (crate::object_tree::Document::default(), diagnostics, loader);
|
||||
}
|
||||
|
||||
let doc_node: parser::syntax_nodes::Document = doc_node.into();
|
||||
|
||||
let type_registry =
|
||||
Rc::new(RefCell::new(typeregister::TypeRegister::new(&loader.global_type_registry)));
|
||||
let (foreign_imports, reexports) =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue