You have to do this with compiler state from jvm clojure. My cljs-tooling
project used for auto-completions in cider-nrepl demonstrates this.

https://github.com/gtrak/cljs-tooling


On Friday, May 2, 2014, T P
<[email protected]<javascript:_e(%7B%7D,'cvml','[email protected]');>>
wrote:

> I'm new to ClojureScript/Clojure and was wondering how you find out what
> parts of Clojure are implemented? For example, when I start up a Clojure
> REPL by doing "lein repl", and then do:
>
>    (all-ns)
>
> I get a long list of namespaces. However, when I start up a ClojureScript
> REPL via "lein trampoline cljsbuild repl-rhino" and do the same thing, I
> get:
>
>     WARNING: Use of undeclared Var cljs.user/all-ns at line 1 <cljs repl>
>     "Error evaluating:" (all-ns) :as "cljs.user.all_ns.call(null)"
>     org.mozilla.javascript.EcmaError: TypeError: Cannot call method "call"
> of undefined (<cljs repl>#1)
>
> How would I get a list of all valid operations/functions/vars/symbols
> (whatever the correct terminology is?). Something analogous to the Clojure
> (ns-publics 'clojure.core)?
>
> Leiningen 2.3.4 on Java 1.7.0_51 Java HotSpot(TM) Client VM
> Windows 7 64bit
>
> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to the Google Groups
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/clojurescript.
>

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to