File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 2265
2265
2266
2266
(defn get-expander-ns [env ^String nstr]
2267
2267
(cond
2268
- (identical? " clojure.core" nstr)
2269
- #?(:clj (find-ns 'cljs.core)
2270
- :cljs (find-macros-ns CLJS_CORE_MACROS_SYM))
2271
- (identical? " clojure.repl" nstr)
2272
- #?(:clj (find-ns 'cljs.repl)
2273
- :cljs (find-macros-ns 'cljs.repl))
2274
- #?@(:clj [(.contains nstr " ." ) (find-ns (symbol nstr))]
2275
- :cljs [(goog.string/contains nstr " ." ) (find-macros-ns (symbol nstr))])
2276
- :else
2277
- (some-> env :ns :require-macros (get (symbol nstr)) find-ns)))
2268
+ #?@(:clj [(= " clojure.core" nstr) (find-ns 'cljs.core)]
2269
+ :cljs [(identical? " clojure.core" nstr) (find-macros-ns CLJS_CORE_MACROS_SYM)])
2270
+ #?@(:clj [(= " clojure.repl" nstr) (find-ns 'cljs.repl)]
2271
+ :cljs [(identical? " clojure.repl" nstr) (find-macros-ns 'cljs.repl)])
2272
+ #?@(:clj [(.contains nstr " ." ) (find-ns (symbol nstr))]
2273
+ :cljs [(goog.string/contains nstr " ." ) (find-macros-ns (symbol nstr))])
2274
+ :else (some-> env :ns :require-macros (get (symbol nstr)) find-ns)))
2278
2275
2279
2276
(defn get-expander* [sym env]
2280
2277
(when-not (or (not (nil? (gets env :locals sym))) ; locals hide macros
You can’t perform that action at this time.
0 commit comments