Skip to content

Commit e661314

Browse files
committed
add cljs.analyzer.api/warning-message
1 parent 1c2094c commit e661314

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/clojure/cljs/analyzer/api.cljc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@
7171
`(ana/with-warning-handlers ~handlers
7272
~@body))
7373

74+
(defn warning-message
75+
"Helper for generating the standard analyzer messages for warnings. Should be
76+
passed warn-type and warn-info. See with-warning-handlers."
77+
[warn-type warn-info]
78+
(ana/error-message warn-type warn-info))
79+
7480
(defn get-options
7581
"Return the compiler options from compiler state."
7682
([] (get-options (current-state)))

0 commit comments

Comments
 (0)