We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c33a022 commit f2f4402Copy full SHA for f2f4402
1 file changed
.clj-kondo/hooks/ornament.clj
@@ -28,7 +28,11 @@
28
(api/reg-finding! {:row (:row (meta fn-tag))
29
:col (:col (meta fn-tag))
30
:message "fn-tag must be at least a list or nil"
31
- :type :lambdaisland.ornament/invalid-syntax}))]
+ :type :lambdaisland.ornament/invalid-syntax}))
32
+ def-class-form (api/list-node
33
+ (list (api/token-node 'def)
34
+ class-name
35
+ (api/token-node 'nil)))]
36
(if (api/list-node? fn-tag)
37
(let [[binding-vec & body] (:children fn-tag)
38
new-node (api/list-node
@@ -39,4 +43,4 @@
39
43
(prn :new-node (api/sexpr new-node))
40
44
{:node new-node})
41
45
;; nil node
42
- {:node true})))
46
+ {:node def-class-form})))
0 commit comments