File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3838(defmacro enumerated-entity [tp doc & {:keys [unit]}]
3939 (assert (string? doc))
4040 (let [tp (resolve-tag tp)
41- fname (with-meta (symbol (jt.u/dashize (-> (str tp) (string/split #"\. " ) last ))) {:tag tp})
41+ fname (with-meta (symbol (jt.u/dashize (-> (str tp) (string/split #"\. " ) peek ))) {:tag tp})
4242 fields (symbol (str fname " -fields" ))]
4343 `(do
4444 (def ~fields
9393 (assert (string? doc))
9494 (let [^Class tpcls (resolve tp)
9595 tp (symbol (.getName tpcls))
96- fname (with-meta (symbol (jt.u/dashize (-> (str tp) (string/split #"\. " ) last ))) {:tag tp})
96+ fname (with-meta (symbol (jt.u/dashize (-> (str tp) (string/split #"\. " ) peek ))) {:tag tp})
9797 arg (gensym )]
9898 `(do
9999 (defn ^{:doc ~(str " True if `" tp " `." )} ~(symbol (str fname " ?" ))
You can’t perform that action at this time.
0 commit comments