clj-ns-browser icon indicating copy to clipboard operation
clj-ns-browser copied to clipboard

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

Open jafingerhut opened this issue 12 years ago • 2 comments

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.

jafingerhut avatar May 01 '12 15:05 jafingerhut

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 avatar May 02 '12 19:05 franks42

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.

franks42 avatar May 02 '12 19:05 franks42