File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 186186
187187(defn- alias-map
188188 [compiler cljs-ns]
189- (->> (merge ( get-in compiler [ ::ana/namespaces cljs-ns :requires ])
190- (get-in compiler [ ::ana/namespaces cljs-ns :require-macros ] ))
189+ (->> (env/with- compiler-env compiler
190+ (ana/ get-aliases cljs-ns))
191191 (remove (fn [[k v]] (symbol-identical? k v)))
192192 (into {})))
193193
Original file line number Diff line number Diff line change 77; ; You must not remove this notice, or any other, from this software.
88
99(ns cljs.ns-test.foo
10- (:require [cljs.test :refer-macros [deftest is]]))
10+ (:require [cljs.test :refer-macros [deftest is]]
11+ [made.up.lib :as-alias lib]))
1112
1213(defn baz [] 123 )
1314
1718(deftest test-namespaced-keywords
1819 (is (= (str kw) " :cljs.ns-test.foo/foo" ))
1920 (is (= (str qkw) " :cljs.ns-test.foo/foo" )))
21+
22+ (deftest test-as-alias-keywords
23+ (is (keyword-identical? ::lib/foo :made.up.lib/foo )))
You can’t perform that action at this time.
0 commit comments