Skip to content

Commit 6934216

Browse files
committed
docstrings for analyzed helpers
1 parent fb16239 commit 6934216

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/clojure/cljs/analyzer.cljc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2863,10 +2863,13 @@
28632863
:numeric numeric})))
28642864

28652865
(defn analyzed
2866+
"Mark a form as being analyzed. Assumes x satisfies IMeta. Useful to suppress
2867+
warnings that will have been caught by a first compiler pass."
28662868
[x]
28672869
(vary-meta x assoc ::analyzed true))
28682870

2869-
(defn- analyzed?
2871+
(defn analyzed?
2872+
"Returns boolean if the form has already been marked as analyzed."
28702873
#?(:cljs {:tag boolean})
28712874
[x]
28722875
(boolean (::analyzed (meta x))))

0 commit comments

Comments
 (0)