Skip to content

Commit 05e14e6

Browse files
committed
1.7.10
- auto-generated by: https://github.com/cljsinfo/cljs-api-docs - parsed from: ClojureScript 1.7.10 Clojure 1.7.0
1 parent 08532c1 commit 05e14e6

File tree

1,217 files changed

+21001
-10596
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,217 files changed

+21001
-10596
lines changed

HISTORY.md

+448
Large diffs are not rendered by default.

INDEX.md

+408-6
Large diffs are not rendered by default.

UNFINISHED.md

+420
Large diffs are not rendered by default.

UNPORTED.md

-28
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,6 @@ symbols that are not yet ported to ClojureScript:
8282
</tr>
8383
<tr>
8484
<td><img width="20px" height="20px" valign="middle" src="http://i.imgur.com/sWBgjc6.png"></td>
85-
<td><samp>[clojure.core/\*ns\*](http://clojure.github.io/clojure/branch-master/clojure.core-api.html#clojure.core/*ns*)</samp></td>
86-
</tr>
87-
<tr>
88-
<td><img width="20px" height="20px" valign="middle" src="http://i.imgur.com/sWBgjc6.png"></td>
89-
<td><samp>[clojure.core/\*out\*](http://clojure.github.io/clojure/branch-master/clojure.core-api.html#clojure.core/*out*)</samp></td>
90-
</tr>
91-
<tr>
92-
<td><img width="20px" height="20px" valign="middle" src="http://i.imgur.com/sWBgjc6.png"></td>
9385
<td><samp>[clojure.core/\*read-eval\*](http://clojure.github.io/clojure/branch-master/clojure.core-api.html#clojure.core/*read-eval*)</samp></td>
9486
</tr>
9587
<tr>
@@ -286,10 +278,6 @@ symbols that are not yet ported to ClojureScript:
286278
</tr>
287279
<tr>
288280
<td><img width="20px" height="20px" valign="middle" src="http://i.imgur.com/sWBgjc6.png"></td>
289-
<td><samp>[clojure.core/char?](http://clojure.github.io/clojure/branch-master/clojure.core-api.html#clojure.core/char?)</samp></td>
290-
</tr>
291-
<tr>
292-
<td><img width="20px" height="20px" valign="middle" src="http://i.imgur.com/sWBgjc6.png"></td>
293281
<td><samp>[clojure.core/class](http://clojure.github.io/clojure/branch-master/clojure.core-api.html#clojure.core/class)</samp></td>
294282
</tr>
295283
<tr>
@@ -318,10 +306,6 @@ symbols that are not yet ported to ClojureScript:
318306
</tr>
319307
<tr>
320308
<td><img width="20px" height="20px" valign="middle" src="http://i.imgur.com/sWBgjc6.png"></td>
321-
<td><samp>[clojure.core/create-ns](http://clojure.github.io/clojure/branch-master/clojure.core-api.html#clojure.core/create-ns)</samp></td>
322-
</tr>
323-
<tr>
324-
<td><img width="20px" height="20px" valign="middle" src="http://i.imgur.com/sWBgjc6.png"></td>
325309
<td><samp>[clojure.core/create-struct](http://clojure.github.io/clojure/branch-master/clojure.core-api.html#clojure.core/create-struct)</samp></td>
326310
</tr>
327311
<tr>
@@ -402,10 +386,6 @@ symbols that are not yet ported to ClojureScript:
402386
</tr>
403387
<tr>
404388
<td><img width="20px" height="20px" valign="middle" src="http://i.imgur.com/sWBgjc6.png"></td>
405-
<td><samp>[clojure.core/find-ns](http://clojure.github.io/clojure/branch-master/clojure.core-api.html#clojure.core/find-ns)</samp></td>
406-
</tr>
407-
<tr>
408-
<td><img width="20px" height="20px" valign="middle" src="http://i.imgur.com/sWBgjc6.png"></td>
409389
<td><samp>[clojure.core/find-var](http://clojure.github.io/clojure/branch-master/clojure.core-api.html#clojure.core/find-var)</samp></td>
410390
</tr>
411391
<tr>
@@ -530,10 +510,6 @@ symbols that are not yet ported to ClojureScript:
530510
</tr>
531511
<tr>
532512
<td><img width="20px" height="20px" valign="middle" src="http://i.imgur.com/sWBgjc6.png"></td>
533-
<td><samp>[clojure.core/ns-name](http://clojure.github.io/clojure/branch-master/clojure.core-api.html#clojure.core/ns-name)</samp></td>
534-
</tr>
535-
<tr>
536-
<td><img width="20px" height="20px" valign="middle" src="http://i.imgur.com/sWBgjc6.png"></td>
537513
<td><samp>[clojure.core/ns-publics](http://clojure.github.io/clojure/branch-master/clojure.core-api.html#clojure.core/ns-publics)</samp></td>
538514
</tr>
539515
<tr>
@@ -1233,10 +1209,6 @@ symbols that are not yet ported to ClojureScript:
12331209
</tr>
12341210
<tr>
12351211
<td><img width="20px" height="20px" valign="middle" src="http://i.imgur.com/sWBgjc6.png"></td>
1236-
<td><samp>[clojure.lang/Namespace](https://github.com/clojure/clojure/blob//src/jvm/clojure/lang/Namespace.java)</samp></td>
1237-
</tr>
1238-
<tr>
1239-
<td><img width="20px" height="20px" valign="middle" src="http://i.imgur.com/sWBgjc6.png"></td>
12401212
<td><samp>[clojure.lang/Numbers](https://github.com/clojure/clojure/blob//src/jvm/clojure/lang/Numbers.java)</samp></td>
12411213
</tr>
12421214
<tr>

cljs-api.edn

+3,866-2,836
Large diffs are not rendered by default.

refs/cljs.analyzer.api/all-ns.md

+14-9
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515

1616
<samp>
1717
(__all-ns__)<br>
18+
</samp>
19+
<samp>
20+
(__all-ns__ state)<br>
1821
</samp>
1922

2023
---
@@ -31,25 +34,27 @@ returns symbols identifying namespaces not Namespace instances.
3134
```
3235

3336

34-
Source code @ [github](https://github.com/clojure/clojurescript/blob/r3308/src/main/clojure/cljs/analyzer/api.clj#L87-L91):
37+
Source code @ [github](https://github.com/clojure/clojurescript/blob/r1.7.10/src/main/clojure/cljs/analyzer/api.clj#L145-L151):
3538

3639
```clj
3740
(defn all-ns
38-
[]
39-
(keys (get @env/*compiler* ::ana/namespaces)))
41+
([]
42+
(all-ns env/*compiler*))
43+
([state]
44+
(keys (get @state ::ana/namespaces))))
4045
```
4146

4247
<!--
4348
Repo - tag - source tree - lines:
4449
4550
<pre>
46-
clojurescript @ r3308
51+
clojurescript @ r1.7.10
4752
└── src
4853
└── main
4954
└── clojure
5055
└── cljs
5156
└── analyzer
52-
└── <ins>[api.clj:87-91](https://github.com/clojure/clojurescript/blob/r3308/src/main/clojure/cljs/analyzer/api.clj#L87-L91)</ins>
57+
└── <ins>[api.clj:145-151](https://github.com/clojure/clojurescript/blob/r1.7.10/src/main/clojure/cljs/analyzer/api.clj#L145-L151)</ins>
5358
</pre>
5459
5560
-->
@@ -93,16 +98,16 @@ The API data for this symbol:
9398
```clj
9499
{:ns "cljs.analyzer.api",
95100
:name "all-ns",
96-
:signature ["[]"],
101+
:signature ["[]" "[state]"],
97102
:history [["+" "0.0-2496"]],
98103
:type "function",
99104
:full-name-encode "cljs.analyzer.api/all-ns",
100-
:source {:code "(defn all-ns\n []\n (keys (get @env/*compiler* ::ana/namespaces)))",
105+
:source {:code "(defn all-ns\n ([]\n (all-ns env/*compiler*))\n ([state]\n (keys (get @state ::ana/namespaces))))",
101106
:title "Source code",
102107
:repo "clojurescript",
103-
:tag "r3308",
108+
:tag "r1.7.10",
104109
:filename "src/main/clojure/cljs/analyzer/api.clj",
105-
:lines [87 91]},
110+
:lines [145 151]},
106111
:full-name "cljs.analyzer.api/all-ns",
107112
:clj-symbol "clojure.core/all-ns",
108113
:docstring "Return all namespaces. Analagous to clojure.core/all-ns but\nreturns symbols identifying namespaces not Namespace instances."}

refs/cljs.analyzer.api/analyze-file.md

+21-9
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
</samp>
1616
<samp>
1717
(__analyze-file__ f opts)<br>
18+
</samp>
19+
<samp>
20+
(__analyze-file__ state f opts)<br>
1821
</samp>
1922

2023
---
@@ -37,25 +40,34 @@ meaningful value.
3740
```
3841

3942

40-
Source code @ [github](https://github.com/clojure/clojurescript/blob/r3308/src/main/clojure/cljs/analyzer/api.clj#L61-L71):
43+
Source code @ [github](https://github.com/clojure/clojurescript/blob/r1.7.10/src/main/clojure/cljs/analyzer/api.clj#L110-L129):
4144

4245
```clj
4346
(defn analyze-file
44-
([f] (ana/analyze-file f nil))
45-
([f opts] (ana/analyze-file f opts)))
47+
([f] (analyze-file f nil))
48+
([f opts]
49+
(analyze-file
50+
(if-not (nil? env/*compiler*)
51+
env/*compiler*
52+
(env/default-compiler-env opts))
53+
f opts))
54+
([state f opts]
55+
(env/with-compiler-env state
56+
(binding [ana/*cljs-warning-handlers* (:warning-handlers opts ana/*cljs-warning-handlers*)]
57+
(ana/analyze-file f opts)))))
4658
```
4759

4860
<!--
4961
Repo - tag - source tree - lines:
5062
5163
<pre>
52-
clojurescript @ r3308
64+
clojurescript @ r1.7.10
5365
└── src
5466
└── main
5567
└── clojure
5668
└── cljs
5769
└── analyzer
58-
└── <ins>[api.clj:61-71](https://github.com/clojure/clojurescript/blob/r3308/src/main/clojure/cljs/analyzer/api.clj#L61-L71)</ins>
70+
└── <ins>[api.clj:110-129](https://github.com/clojure/clojurescript/blob/r1.7.10/src/main/clojure/cljs/analyzer/api.clj#L110-L129)</ins>
5971
</pre>
6072
6173
-->
@@ -96,16 +108,16 @@ The API data for this symbol:
96108
```clj
97109
{:ns "cljs.analyzer.api",
98110
:name "analyze-file",
99-
:signature ["[f]" "[f opts]"],
111+
:signature ["[f]" "[f opts]" "[state f opts]"],
100112
:history [["+" "0.0-3208"]],
101113
:type "function",
102114
:full-name-encode "cljs.analyzer.api/analyze-file",
103-
:source {:code "(defn analyze-file\n ([f] (ana/analyze-file f nil))\n ([f opts] (ana/analyze-file f opts)))",
115+
:source {:code "(defn analyze-file\n ([f] (analyze-file f nil))\n ([f opts]\n (analyze-file\n (if-not (nil? env/*compiler*)\n env/*compiler*\n (env/default-compiler-env opts))\n f opts))\n ([state f opts]\n (env/with-compiler-env state\n (binding [ana/*cljs-warning-handlers* (:warning-handlers opts ana/*cljs-warning-handlers*)]\n (ana/analyze-file f opts)))))",
104116
:title "Source code",
105117
:repo "clojurescript",
106-
:tag "r3308",
118+
:tag "r1.7.10",
107119
:filename "src/main/clojure/cljs/analyzer/api.clj",
108-
:lines [61 71]},
120+
:lines [110 129]},
109121
:full-name "cljs.analyzer.api/analyze-file",
110122
:docstring "Given a java.io.File, java.net.URL or a string identifying a resource on the\nclasspath attempt to analyze it.\n\nThis function side-effects the ambient compilation environment\n`cljs.env/*compiler*` to aggregate analysis information. opts argument is\ncompiler options, if :cache-analysis true will cache analysis to\n\":output-dir/some/ns/foo.cljs.cache.edn\". This function does not return a\nmeaningful value."}
111123

refs/cljs.analyzer.api/analyze.md

+25-10
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
</samp>
1919
<samp>
2020
(__analyze__ env form name opts)<br>
21+
</samp>
22+
<samp>
23+
(__analyze__ state env form name opts)<br>
2124
</samp>
2225

2326
---
@@ -38,26 +41,35 @@ facilitate code walking without knowing the details of the op set.
3841
```
3942

4043

41-
Source code @ [github](https://github.com/clojure/clojurescript/blob/r3308/src/main/clojure/cljs/analyzer/api.clj#L30-L39):
44+
Source code @ [github](https://github.com/clojure/clojurescript/blob/r1.7.10/src/main/clojure/cljs/analyzer/api.clj#L61-L79):
4245

4346
```clj
4447
(defn analyze
45-
([env form] (ana/analyze env form nil))
46-
([env form name] (ana/analyze env form name nil))
47-
([env form name opts] (ana/analyze env form name opts)))
48+
([env form] (analyze env form nil))
49+
([env form name] (analyze env form name nil))
50+
([env form name opts]
51+
(analyze
52+
(if-not (nil? env/*compiler*)
53+
env/*compiler*
54+
(env/default-compiler-env opts))
55+
env form name opts))
56+
([state env form name opts]
57+
(env/with-compiler-env state
58+
(binding [ana/*cljs-warning-handlers* (:warning-handlers opts ana/*cljs-warning-handlers*)]
59+
(ana/analyze env form name opts)))))
4860
```
4961

5062
<!--
5163
Repo - tag - source tree - lines:
5264
5365
<pre>
54-
clojurescript @ r3308
66+
clojurescript @ r1.7.10
5567
└── src
5668
└── main
5769
└── clojure
5870
└── cljs
5971
└── analyzer
60-
└── <ins>[api.clj:30-39](https://github.com/clojure/clojurescript/blob/r3308/src/main/clojure/cljs/analyzer/api.clj#L30-L39)</ins>
72+
└── <ins>[api.clj:61-79](https://github.com/clojure/clojurescript/blob/r1.7.10/src/main/clojure/cljs/analyzer/api.clj#L61-L79)</ins>
6173
</pre>
6274
6375
-->
@@ -98,16 +110,19 @@ The API data for this symbol:
98110
```clj
99111
{:ns "cljs.analyzer.api",
100112
:name "analyze",
101-
:signature ["[env form]" "[env form name]" "[env form name opts]"],
113+
:signature ["[env form]"
114+
"[env form name]"
115+
"[env form name opts]"
116+
"[state env form name opts]"],
102117
:history [["+" "0.0-3208"]],
103118
:type "function",
104119
:full-name-encode "cljs.analyzer.api/analyze",
105-
:source {:code "(defn analyze\n ([env form] (ana/analyze env form nil))\n ([env form name] (ana/analyze env form name nil))\n ([env form name opts] (ana/analyze env form name opts)))",
120+
:source {:code "(defn analyze\n ([env form] (analyze env form nil))\n ([env form name] (analyze env form name nil))\n ([env form name opts]\n (analyze\n (if-not (nil? env/*compiler*)\n env/*compiler*\n (env/default-compiler-env opts))\n env form name opts))\n ([state env form name opts]\n (env/with-compiler-env state\n (binding [ana/*cljs-warning-handlers* (:warning-handlers opts ana/*cljs-warning-handlers*)]\n (ana/analyze env form name opts)))))",
106121
:title "Source code",
107122
:repo "clojurescript",
108-
:tag "r3308",
123+
:tag "r1.7.10",
109124
:filename "src/main/clojure/cljs/analyzer/api.clj",
110-
:lines [30 39]},
125+
:lines [61 79]},
111126
:full-name "cljs.analyzer.api/analyze",
112127
:docstring "Given an environment, a map containing {:locals (mapping of names to bindings), :context\n(one of :statement, :expr, :return), :ns (a symbol naming the\ncompilation ns)}, and form, returns an expression object (a map\ncontaining at least :form, :op and :env keys). If expr has any (immediately)\nnested exprs, must have :children [exprs...] entry. This will\nfacilitate code walking without knowing the details of the op set."}
113128
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
## cljs.analyzer.api/default-warning-handler
2+
3+
4+
5+
<table border="1">
6+
<tr>
7+
<td>function</td>
8+
<td><a href="https://github.com/cljsinfo/cljs-api-docs/tree/1.7.10"><img valign="middle" alt="[+] 1.7.10" title="Added in 1.7.10" src="https://img.shields.io/badge/+-1.7.10-lightgrey.svg"></a> </td>
9+
</tr>
10+
</table>
11+
12+
13+
<samp>
14+
(__default-warning-handler__ warning-type env extra)<br>
15+
</samp>
16+
17+
---
18+
19+
20+
21+
22+
23+
Source docstring:
24+
25+
```
26+
The default warning handler.
27+
28+
Outputs the warning messages to *err*.
29+
```
30+
31+
32+
Source code @ [github](https://github.com/clojure/clojurescript/blob/r1.7.10/src/main/clojure/cljs/analyzer/api.clj#L48-L53):
33+
34+
```clj
35+
(defn default-warning-handler
36+
[warning-type env extra]
37+
(ana/default-warning-handler warning-type env extra))
38+
```
39+
40+
<!--
41+
Repo - tag - source tree - lines:
42+
43+
<pre>
44+
clojurescript @ r1.7.10
45+
└── src
46+
└── main
47+
└── clojure
48+
└── cljs
49+
└── analyzer
50+
└── <ins>[api.clj:48-53](https://github.com/clojure/clojurescript/blob/r1.7.10/src/main/clojure/cljs/analyzer/api.clj#L48-L53)</ins>
51+
</pre>
52+
53+
-->
54+
55+
---
56+
57+
58+
59+
###### External doc links:
60+
61+
[`cljs.analyzer.api/default-warning-handler` @ crossclj](http://crossclj.info/fun/cljs.analyzer.api/default-warning-handler.html)<br>
62+
63+
---
64+
65+
<table>
66+
<tr><td>
67+
<img valign="middle" align="right" width="48px" src="http://i.imgur.com/Hi20huC.png">
68+
</td><td>
69+
Created for the upcoming ClojureScript website.<br>
70+
[edit here] | [learn how]
71+
</td></tr></table>
72+
73+
[edit here]:https://github.com/cljsinfo/cljs-api-docs/blob/master/cljsdoc/cljs.analyzer.api/default-warning-handler.cljsdoc
74+
[learn how]:https://github.com/cljsinfo/cljs-api-docs/wiki/cljsdoc-files
75+
76+
<!--
77+
78+
This information was too distracting to show to readers, but I'll leave it
79+
commented here since it is helpful to:
80+
81+
- pretty-print the data used to generate this document
82+
- and show how to retrieve that data
83+
84+
85+
86+
The API data for this symbol:
87+
88+
```clj
89+
{:ns "cljs.analyzer.api",
90+
:name "default-warning-handler",
91+
:signature ["[warning-type env extra]"],
92+
:history [["+" "1.7.10"]],
93+
:type "function",
94+
:full-name-encode "cljs.analyzer.api/default-warning-handler",
95+
:source {:code "(defn default-warning-handler\n [warning-type env extra]\n (ana/default-warning-handler warning-type env extra))",
96+
:title "Source code",
97+
:repo "clojurescript",
98+
:tag "r1.7.10",
99+
:filename "src/main/clojure/cljs/analyzer/api.clj",
100+
:lines [48 53]},
101+
:full-name "cljs.analyzer.api/default-warning-handler",
102+
:docstring "The default warning handler.\n\nOutputs the warning messages to *err*."}
103+
104+
```
105+
106+
Retrieve the API data for this symbol:
107+
108+
```clj
109+
;; from Clojure REPL
110+
(require '[clojure.edn :as edn])
111+
(-> (slurp "https://raw.githubusercontent.com/cljsinfo/cljs-api-docs/catalog/cljs-api.edn")
112+
(edn/read-string)
113+
(get-in [:symbols "cljs.analyzer.api/default-warning-handler"]))
114+
```
115+
116+
-->

0 commit comments

Comments
 (0)