File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 30
30
[cljs.analyzer :as ana]
31
31
[cljs.source-map :as sm]))
32
32
#? (:clj (:import java.lang.StringBuilder
33
- java.io. File
33
+ [ java.io File Writer]
34
34
[cljs.tagged_literals JSValue])
35
35
:cljs (:import [goog.string StringBuffer])))
36
36
205
205
#?(:clj (map? x) :cljs (ana/cljs-map? x)) (emit x)
206
206
#?(:clj (seq? x) :cljs (ana/cljs-seq? x)) (apply emits x)
207
207
#?(:clj (fn? x) :cljs ^boolean (goog/isFunction x)) (x )
208
- :else (let [s (cond-> x
209
- (not (string? x)) print-str)]
208
+ :else (let [^String s (cond-> x (not (string? x)) print-str)]
210
209
(when-not (nil? *source-map-data*)
211
210
(swap! *source-map-data*
212
211
update-in [:gen-col ] #(+ % (count s))))
213
- (print s))))
212
+ (.write ^Writer *out* s))))
214
213
nil )
215
214
216
215
(defn emitln [& xs]
You can’t perform that action at this time.
0 commit comments