Rust: fixes

This commit is contained in:
Arthur Baars
2025-05-19 21:30:39 +02:00
committed by Tom Hvitved
parent 456a4b2be8
commit 44a404571f
10 changed files with 545 additions and 41 deletions

View File

@@ -34,8 +34,9 @@ impl Translator<'_> {
{{#nodes}}
pub(crate) fn emit_{{snake_case_name}}(&mut self, node: &ast::{{ast_name}}) -> Option<Label<generated::{{name}}>> {
{{#has_attrs}}
if self.should_be_excluded(node) { return None; }
{{#has_attrs}}
if self.should_be_excluded_attrs(node) { return None; }
{{/has_attrs}}
{{#fields}}
{{#predicate}}