Skip to content

Commit cf617c8

Browse files
anmonteirodnolen
authored andcommitted
CLJS-2022: cljs.spec -> cljs.spec.alpha fixes
1 parent 1c76684 commit cf617c8

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/main/cljs/cljs/repl.cljs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
(ns cljs.repl
1010
(:require-macros cljs.repl)
11-
(:require [cljs.spec :as spec]))
11+
(:require [cljs.spec.alpha :as spec]))
1212

1313
(defn print-doc [{n :ns nm :name :as m}]
1414
(println "-------------------------")
@@ -29,7 +29,7 @@
2929
(if (:special-form m)
3030
(do
3131
(println "Special Form")
32-
(println " " (:doc m))
32+
(println " " (:doc m))
3333
(if (contains? m :url)
3434
(when (:url m)
3535
(println (str "\n Please see http://clojure.org/" (:url m))))

src/main/cljs/cljs/spec/test/alpha.cljc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ invokes the fn you provide, enabling arbitrary stubbing and mocking.
104104
Returns a collection of syms naming the vars instrumented."
105105
([]
106106
`(instrument '[~@(#?(:clj s/speced-vars
107-
:cljs cljs.spec$macros/speced-vars))]))
107+
:cljs cljs.spec.alpha$macros/speced-vars))]))
108108
([xs]
109109
`(instrument ~xs nil))
110110
([sym-or-syms opts]

src/main/clojure/cljs/analyzer.cljc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2150,7 +2150,7 @@
21502150
(when (some? alias)
21512151
{rk (merge {alias lib} {lib lib}
21522152
(when js-module-provides {js-module-provides lib}))})
2153-
(when (some? referred-without-renamed)
2153+
(when (some? referred-without-renamed)
21542154
{uk (apply hash-map (interleave referred-without-renamed (repeat lib)))})
21552155
(when (some? renamed)
21562156
{renk (reduce (fn [m [original renamed]]
@@ -2950,9 +2950,9 @@
29502950
mvar)))
29512951

29522952
#?(:cljs
2953-
(let [cached-var (delay (get (ns-interns* 'cljs.spec) 'macroexpand-check))]
2953+
(let [cached-var (delay (get (ns-interns* 'cljs.spec.alpha) 'macroexpand-check))]
29542954
(defn get-macroexpand-check-var []
2955-
(when (some? (find-ns-obj 'cljs.spec))
2955+
(when (some? (find-ns-obj 'cljs.spec.alpha))
29562956
@cached-var))))
29572957

29582958
(defn macroexpand-1*
@@ -2964,7 +2964,7 @@
29642964
(if-some [mac-var (when (symbol? op) (get-expander op env))]
29652965
(#?@(:clj [binding [*ns* (create-ns *cljs-ns*)]]
29662966
:cljs [do])
2967-
(let [mchk #?(:clj (some-> (find-ns 'clojure.spec)
2967+
(let [mchk #?(:clj (some-> (find-ns 'clojure.spec.alpha)
29682968
(ns-resolve 'macroexpand-check))
29692969
:cljs (get-macroexpand-check-var))
29702970
_ (when (some? mchk)

0 commit comments

Comments
 (0)