Skip to content

Commit

Permalink
basic support for passing analyze-path param to REPLs.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Nolen authored and David Nolen committed Nov 18, 2012
1 parent 8c8b1a9 commit 51ed707
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/clj/cljs/repl.clj
Expand Up @@ -161,11 +161,13 @@

(defn repl
"Note - repl will reload core.cljs every time, even if supplied old repl-env"
[repl-env & {:keys [verbose warn-on-undeclared special-fns]}]
[repl-env & {:keys [analyze-path verbose warn-on-undeclared special-fns]}]
(prn "Type: " :cljs/quit " to quit")
(binding [ana/*cljs-ns* 'cljs.user
*cljs-verbose* verbose
ana/*cljs-warn-on-undeclared* warn-on-undeclared]
(when analyze-path
(analyze-source analyze-path))
(let [env {:context :expr :locals {}}
special-fns (merge default-special-fns special-fns)
is-special-fn? (set (keys special-fns))]
Expand Down

0 comments on commit 51ed707

Please sign in to comment.