28
28
29
29
(def
30
30
^{:dynamic true
31
- :doc " Var bound to the current namespace. Only used for bootstrapping." }
31
+ :doc " Var bound to the current namespace. Only used for bootstrapping."
32
+ :jsdoc [" @type {*}" ]}
32
33
*ns* nil )
33
34
34
35
(def
35
- ^{:dynamic true }
36
+ ^{:dynamic true
37
+ :jsdoc [" @type {*}" ]}
36
38
*out* nil )
37
39
38
40
(def
106
108
:doc " When set to logical true, objects will be printed in a way that preserves
107
109
their type when read in later.
108
110
109
- Defaults to false." }
111
+ Defaults to false."
112
+ :jsdoc [" @type {null|number}" ]}
110
113
*print-length* nil )
111
114
112
115
(def
118
121
collection, its items are at level 1; and so on. If an object is a
119
122
collection and is at a level greater than or equal to the value bound to
120
123
*print-level*, the printer prints '#' to represent it. The root binding
121
- is nil indicating no limit." }
124
+ is nil indicating no limit."
125
+ :jsdoc [" @type {null|number}" ]}
122
126
*print-level* nil )
123
127
124
- (defonce ^:dynamic *loaded-libs* nil )
128
+ (defonce
129
+ ^{:dynamic true
130
+ :jsdoc [" @type {*}" ]}
131
+ *loaded-libs* nil )
125
132
126
133
(defn- pr-opts []
127
134
{:flush-on-newline *flush-on-newline*
@@ -9143,7 +9150,9 @@ reduces them without incurring seq initialization"
9143
9150
9144
9151
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; gensym ;;;;;;;;;;;;;;;;
9145
9152
; ; Internal - do not use!
9146
- (def gensym_counter nil )
9153
+ (def
9154
+ ^{:jsdoc [" @type {*}" ]}
9155
+ gensym_counter nil )
9147
9156
9148
9157
(defn gensym
9149
9158
" Returns a new symbol with a unique name. If a prefix string is
@@ -9403,7 +9412,10 @@ Maps become Objects. Arbitrary keys are encoded to by key->js."
9403
9412
" Creates a hierarchy object for use with derive, isa? etc."
9404
9413
[] {:parents {} :descendants {} :ancestors {}})
9405
9414
9406
- (def ^:private -global-hierarchy nil )
9415
+ (def
9416
+ ^{:private true
9417
+ :jsdoc [" @type {*}" ]}
9418
+ -global-hierarchy nil )
9407
9419
9408
9420
(defn- get-global-hierarchy []
9409
9421
(when (nil? -global-hierarchy)
@@ -9984,7 +9996,10 @@ Maps become Objects. Arbitrary keys are encoded to by key->js."
9984
9996
{:pre [(symbol? tag)]}
9985
9997
(TaggedLiteral. tag form))
9986
9998
9987
- (def ^:private js-reserved-arr
9999
+ (def
10000
+ ^{:private true
10001
+ :jsdoc [" @type {*}" ]}
10002
+ js-reserved-arr
9988
10003
#js [" abstract" " boolean" " break" " byte" " case"
9989
10004
" catch" " char" " class" " const" " continue"
9990
10005
" debugger" " default" " delete" " do" " double"
@@ -9999,7 +10014,9 @@ Maps become Objects. Arbitrary keys are encoded to by key->js."
9999
10014
" volatile" " while" " with" " yield" " methods"
10000
10015
" null" ])
10001
10016
10002
- (def js-reserved nil )
10017
+ (def
10018
+ ^{:jsdoc [" @type {*}" ]}
10019
+ js-reserved nil )
10003
10020
10004
10021
(defn- js-reserved? [x]
10005
10022
(when (nil? js-reserved)
@@ -10093,7 +10110,9 @@ Maps become Objects. Arbitrary keys are encoded to by key->js."
10093
10110
(-hash [_]
10094
10111
(hash name)))
10095
10112
10096
- (def NS_CACHE nil )
10113
+ (def
10114
+ ^{:jsdoc [" @type {*}" ]}
10115
+ NS_CACHE nil )
10097
10116
10098
10117
(defn- find-ns-obj* [ctxt xs]
10099
10118
(cond
0 commit comments