Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Commit eae38be

Browse files
committed
Rename cat to avoid conflict with new fn in 1.7, close #23
1 parent c5f5192 commit eae38be

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • lein-light-nrepl/src/lighttable/nrepl

lein-light-nrepl/src/lighttable/nrepl/sonar.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,10 @@
144144
(when (coll? f)
145145
(= (first f) 'clojure.core/deref)))
146146

147-
(defn cat [func expr]
147+
(defn cat-expr [func expr]
148148
(apply concat
149149
(when-let [res (func expr)] [res])
150-
(map (partial cat func) (:children expr))))
150+
(map (partial cat-expr func) (:children expr))))
151151

152152
(defn ops [expr]
153153
(when-let [o (:op expr)]
@@ -162,7 +162,7 @@
162162
(let [non-symbol-forms (filter #(and (not (symbol? %))
163163
(not (nil? %))
164164
(not (deref-form? %))) forms)
165-
vars (cat (by-op-type :var)
165+
vars (cat-expr (by-op-type :var)
166166
(cljs-env/with-compiler-env (cljs-env/default-compiler-env)
167167
(cljs/analyze {:locals {}} non-symbol-forms)))]
168168
(reduce (fn [all cur]

0 commit comments

Comments
 (0)