From 85b6d4095c6f07e0dc37c5c4ceb8cfc2e4690925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabrielle=20Guimar=C3=A3es=20de=20Oliveira?= Date: Sun, 12 Nov 2023 22:09:21 -0300 Subject: [PATCH] feat(lura-js): make transform_top_level continue --- lura-js/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lura-js/src/lib.rs b/lura-js/src/lib.rs index aebd5fa..5e02f77 100644 --- a/lura-js/src/lib.rs +++ b/lura-js/src/lib.rs @@ -82,7 +82,9 @@ pub fn dump_into_string( ) -> eyre::Result<()> { let mut writer = resw::Writer::new(w); for top_level in source.contents(db) { - let program_part = transform_top_level(db, *top_level)?; + let Ok(program_part) = transform_top_level(db, *top_level) else { + continue; + }; writer.write_part(&program_part)?; }