Tensegritics / ClojureDart

Clojure dialect for Flutter and Dart
1.44k stars 91 forks source link

Fix linter for f/build #314

Closed valerauko closed 4 months ago

valerauko commented 5 months ago

Problem

The current rewrite hook doesn't include the (hidden) context argument.

Example

(def foo
  (f/build
   [_]
   m/Container))

(foo ctx 42)

Before

error: user/foo is called with 2 args but expects 1

After

Passes lint

How

Prepend _ctx to the rewritten build argsvec