File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 3296
3296
" Mark a form as being analyzed. Assumes x satisfies IMeta. Useful to suppress
3297
3297
warnings that will have been caught by a first compiler pass."
3298
3298
[x]
3299
- (vary-meta x assoc ::analyzed true ))
3299
+ (cond
3300
+ (map? x) (assoc x ::analyzed true )
3301
+ :else (vary-meta x assoc ::analyzed true )))
3300
3302
3301
3303
(defn analyzed?
3302
3304
" Returns boolean if the form has already been marked as analyzed."
3303
3305
#? (:cljs {:tag boolean})
3304
3306
[x]
3305
- (boolean (::analyzed (meta x))))
3307
+ (boolean
3308
+ (cond
3309
+ (map? x) (::analyzed x)
3310
+ :else (::analyzed (meta x)))))
3306
3311
3307
3312
(defn- all-values?
3308
3313
#? (:cljs {:tag boolean})
Original file line number Diff line number Diff line change 65
65
ns
66
66
(subs ns 0 idx))))
67
67
68
- (defn find-ns-starts-with [needle]
68
+ (defn ^:dynamic find-ns-starts-with [needle]
69
69
(reduce-kv
70
70
(fn [xs ns _]
71
71
(when (= needle (get-first-ns-segment ns ))
1473
1473
(atom
1474
1474
{:source-map (sorted-map )
1475
1475
:gen-col 0
1476
- :gen-line 0 }))]
1476
+ :gen-line 0 }))
1477
+ find-ns-starts-with (memoize find-ns-starts-with)]
1477
1478
(emitln (compiled-by-string opts))
1478
1479
(with-open [rdr (io/reader src)]
1479
1480
(let [env (ana/empty-env )]
You can’t perform that action at this time.
0 commit comments