We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a018ae commit e0cd269Copy full SHA for e0cd269
codox/src/codox/reader/clojurescript.clj
@@ -4,6 +4,8 @@
4
(:require [clojure.java.io :as io]
5
[cljs.analyzer :as an]
6
[cljs.analyzer.api :as ana]
7
+ [cljs.closure]
8
+ [cljs.env]
9
[clojure.string :as str]))
10
11
(defn- cljs-filename? [filename]
@@ -71,10 +73,11 @@
71
73
(sort-by (comp str/lower-case :name)))))
72
74
75
(defn- analyze-file [file]
- (let [state (ana/empty-state)]
- (binding [an/*analyze-deps* true]
76
- (ana/no-warn
77
- (ana/analyze-file state file {})))
+ (let [opts (cljs.closure/add-implicit-options {})
+ state (cljs.env/default-compiler-env opts)]
78
+ (ana/no-warn
79
+ (cljs.closure/validate-opts opts)
80
+ (ana/analyze-file state file opts))
81
state))
82
83
(defn- read-file [path file exception-handler]
0 commit comments