feat(natu): lint direct listToAttrs maps

This commit was merged in pull request #109.
This commit is contained in:
2026-09-27 18:05:16 -04:00
parent b6469567e1
commit 0e5731145e
8 changed files with 166 additions and 7 deletions

View File

@@ -42,11 +42,16 @@ impl ScopeGraph {
}
self.build_expr(body, scope)
}
ast::Expr::Apply(application) => [
self.build_expr(&application.lambda, scope),
self.build_expr(&application.argument, scope),
]
.concat(),
ast::Expr::Other(expressions) => expressions
.iter()
.flat_map(|expression| self.build_expr(expression, scope))
.collect(),
ast::Expr::Select(_) => Vec::new(),
ast::Expr::Select(select) => vec![self.add_reference(&select.receiver, scope)],
}
}