As of 1.9.0-alpha13, specs in the registry lack :file metadata despite having :line, :column
user=> (require '[clojure.spec :as s])
user=> (-> (s/registry) (get :clojure.core.specs/arg-list) (meta))
{:line 1118, :column 5, :clojure.spec/name :clojure.core.specs/arg-list}
user=> (-> (s/registry) (get 'clojure.core/let) (meta))
{:line 1675, :column 5, :clojure.spec/name clojure.core/let}
This would be useful because:
* we could list all the specs defined in a project, by filtering the registry.
* we could read the source of a spec, like clojure.repl/source, for pretty formatting.
(specifically, for use in Codox
https://github.com/weavejester/codox/pull/134 )
I had a quick look but couldn't see where the metadata is set.
Cheers