@@ -10435,9 +10435,15 @@ reduces them without incurring seq initialization"
10435
10435
" .."
10436
10436
(demunge-str (str name))))))
10437
10437
10438
- (defn- ns-lookup [ns-obj k]
10438
+ ; ; -----------------------------------------------------------------------------
10439
+ ; ; Bootstrap helpers - incompatible with advanced compilation
10440
+
10441
+ (defn- ns-lookup
10442
+ " Bootstrap only."
10443
+ [ns-obj k]
10439
10444
(fn [] (gobject/get ns-obj k)))
10440
10445
10446
+ ; ; Bootstrap only
10441
10447
(deftype Namespace [obj name]
10442
10448
Object
10443
10449
(findInternedVar [this sym]
@@ -10459,16 +10465,20 @@ reduces them without incurring seq initialization"
10459
10465
(hash name)))
10460
10466
10461
10467
(def
10462
- ^{:jsdoc [" @type {*}" ]}
10468
+ ^{:doc " Bootstrap only. " : jsdoc [" @type {*}" ]}
10463
10469
NS_CACHE nil )
10464
10470
10465
- (defn- find-ns-obj* [ctxt xs]
10471
+ (defn- find-ns-obj*
10472
+ " Bootstrap only."
10473
+ [ctxt xs]
10466
10474
(cond
10467
10475
(nil? ctxt) nil
10468
10476
(nil? xs) ctxt
10469
10477
:else (recur (gobject/get ctxt (first xs)) (next xs))))
10470
10478
10471
- (defn find-ns-obj [ns ]
10479
+ (defn find-ns-obj
10480
+ " Bootstrap only."
10481
+ [ns ]
10472
10482
(let [munged-ns (munge (str ns ))
10473
10483
segs (.split munged-ns " ." )]
10474
10484
(case *target*
@@ -10487,7 +10497,9 @@ reduces them without incurring seq initialization"
10487
10497
" default" (find-ns-obj* goog/global segs)
10488
10498
(throw (js/Error. (str " find-ns-obj not supported for target " *target*))))))
10489
10499
10490
- (defn ns-interns* [sym]
10500
+ (defn ns-interns*
10501
+ " Bootstrap only."
10502
+ [sym]
10491
10503
(let [ns-obj (find-ns-obj sym)
10492
10504
ns (Namespace. ns-obj sym)]
10493
10505
(letfn [(step [ret k]
@@ -10498,12 +10510,15 @@ reduces them without incurring seq initialization"
10498
10510
(reduce step {} (js-keys ns-obj)))))
10499
10511
10500
10512
(defn create-ns
10513
+ " Bootstrap only."
10501
10514
([sym]
10502
10515
(create-ns sym (find-ns-obj sym)))
10503
10516
([sym ns-obj]
10504
10517
(Namespace. ns-obj sym)))
10505
10518
10506
- (defn find-ns [ns ]
10519
+ (defn find-ns
10520
+ " Bootstrap only."
10521
+ [ns ]
10507
10522
(when (nil? NS_CACHE)
10508
10523
(set! NS_CACHE (atom {})))
10509
10524
(let [the-ns (get @NS_CACHE ns )]
@@ -10515,7 +10530,9 @@ reduces them without incurring seq initialization"
10515
10530
(swap! NS_CACHE assoc ns new-ns)
10516
10531
new-ns))))))
10517
10532
10518
- (defn find-macros-ns [ns ]
10533
+ (defn find-macros-ns
10534
+ " Bootstrap only."
10535
+ [ns ]
10519
10536
(when (nil? NS_CACHE)
10520
10537
(set! NS_CACHE (atom {})))
10521
10538
(let [the-ns (get @NS_CACHE ns )]
@@ -10531,5 +10548,7 @@ reduces them without incurring seq initialization"
10531
10548
(swap! NS_CACHE assoc ns new-ns)
10532
10549
new-ns))))))
10533
10550
10534
- (defn ns-name [ns-obj]
10551
+ (defn ns-name
10552
+ " Bootstrap only."
10553
+ [ns-obj]
10535
10554
(.-name ns-obj))
0 commit comments