File tree 4 files changed +13
-5
lines changed
4 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 177
177
178
178
(defn- current-alias-map
179
179
[]
180
- (get-in @env/*compiler* [:cljs.analyzer/namespaces ana/*cljs-ns* :requires ]))
180
+ (->> (merge (get-in @env/*compiler* [::ana/namespaces ana/*cljs-ns* :requires ])
181
+ (get-in @env/*compiler* [::ana/namespaces ana/*cljs-ns* :require-macros ]))
182
+ (remove (fn [[k v]] (= k v)))
183
+ (into {})))
181
184
182
185
; ; -----------------------------------------------------------------------------
183
186
; ; Analyze
Original file line number Diff line number Diff line change
1
+ (ns cljs.keyword-macros )
2
+
3
+ (defmacro add
4
+ [a b]
5
+ `(+ ~a ~b))
Original file line number Diff line number Diff line change 7
7
; ; You must not remove this notice, or any other, from this software.
8
8
9
9
(ns cljs.keyword-test
10
- (:require-macros [clojure.core :as cc ]
10
+ (:require-macros [cljs.keyword-macros :as macros ]
11
11
[cljs.test :refer [deftest is]])
12
12
(:require [cljs.keyword-other :as other]
13
13
[cljs.test]))
14
14
15
15
(deftest test-keyword
16
16
(is (= ::bar :cljs.keyword-test/bar ))
17
17
(is (= ::other/foo :cljs.keyword-other/foo ))
18
- (is (= ::cc /foo :clojure.core /foo )))
18
+ (is (= ::macros /foo :cljs.keyword-macros /foo )))
Original file line number Diff line number Diff line change 283
283
[foo.ns-shadow-test]
284
284
[cljs.top-level]
285
285
[cljs.reducers-test]
286
- #_ [cljs.keyword-test]
286
+ [cljs.keyword-test]
287
287
[cljs.import-test]
288
288
[cljs.ns-test.foo]
289
289
[cljs.pprint]
318
318
'cljs.binding-test
319
319
'cljs.macro-test
320
320
'cljs.top-level
321
- #_ 'cljs.keyword-test
321
+ 'cljs.keyword-test
322
322
#_'cljs.ns-test
323
323
'cljs.ns-test.foo
324
324
'foo.ns-shadow-test
You can’t perform that action at this time.
0 commit comments