right now, code like
(lambda my-function [x unused-y]
(print x))
does not show any unused variables. This is because once the macros are expanded, fennel-ls sees that "unused-y" is in a non-nil assert.
To match the (case (p) [x unused-y] (print x))
behavior, I want to mark "unused-y" as unused, even though the assert is present.
One way to do this is by using compiler hooks to swap all lambda
with fn
, and then swap it back later.
Mirror image of issue fennel-ls#24
fixed