cljs.repl.reflect/handle-reflect-query

multimethodsince v0.0-1503Edit
(handle-reflect-query [param _] & _)

Source code @ clojurescript:src/main/clojure/cljs/repl/reflect.clj
(defmulti handle-reflect-query (fn [[param _] & _] param))

Dispatch method @ clojurescript:src/main/clojure/cljs/repl/reflect.clj
(defmethod handle-reflect-query [[_ sym] req conn opts]
  (let [sym (read-url-string sym)]
    (compile-and-return conn (get-meta sym))))

Dispatch method @ clojurescript:src/main/clojure/cljs/repl/reflect.clj
(defmethod handle-reflect-query [[_ mform] req conn opts]
  (let [mform (-> mform read-url-string macroexpand)]
    (server/send-and-close conn 200 (with-out-str (pprint/pprint mform)))))