cl-ast: Add syntax support for generics

This commit is contained in:
2025-04-22 07:22:44 -04:00
parent 681fbc88d3
commit 8ff17fd475
14 changed files with 124 additions and 36 deletions

View File

@@ -65,7 +65,7 @@ impl<'a> Visit<'a> for CollectUpvars<'_> {
}
fn visit_function(&mut self, f: &'a cl_ast::Function) {
let Function { name: _, sign: _, bind, body } = f;
let Function { name: _, gens: _, sign: _, bind, body } = f;
// parameters can never be upvars
self.visit_pattern(bind);
if let Some(body) = body {