franks42 / clj-ns-browser

Smalltalk-like namespace/class/var/function browser for clojure docs and source-code based on seesaw
Eclipse Public License 1.0
175 stars 11 forks source link

Some function Vars defined with def aren't categorized as Functions #33

Open jafingerhut opened 12 years ago

jafingerhut commented 12 years ago

These are categorized as Var by get-docs-map, but is there a way they could instead be categorized as Function? clj-http.core/proxy-delete-with-body and proxy-get-with-body. It looks like the extension of the docsmap protocol for type clojure.lang.Var in clj-info's doc2map.clj is categorizing those as Vars rather than Functions because either they have no metadata, or if they do, their metadata has no value for the key :arglists.

franks42 commented 12 years ago

The issue is that proxy-delete-with-body is defined with a def: (def proxy-delete-with-body (make-proxy-method-with-body :delete)) and the meta-map doesn't give any info about the arity.

It is identified as an but so is a {}...

Not sure what to do about this (?)

franks42 commented 12 years ago

I noticed that the issue-form eats anything that resembles html pointy brackets :-(

I was pinging out in the previous reply that proxy-delete-with-body is both a "fn" and "fin" but not "defn" because it lost the arty info in the meta-map.