Liking cljdoc? Tell your friends :D
Clojure only.

lucid.core.code.source


analyse-source-fileclj

(analyse-source-file file)

analyses a source file for namespace and function definitions

(analyse-source-file "example/code.analysis/src/example/core.clj") => '{example.core {foo {:source {:code "(defn foo\n [x]\n (println x "Hello, World!"))" :line {:row 3, :col 1, :end-row 6, :end-col 31}, :path "example/code.analysis/src/example/core.clj"}}}}

analyses a source file for namespace and function definitions

(analyse-source-file "example/code.analysis/src/example/core.clj")
=> '{example.core
     {foo {:source
           {:code "(defn foo\n  [x]\n  (println x \"Hello, World!\"))"
            :line {:row 3, :col 1, :end-row 6, :end-col 31},
            :path "example/code.analysis/src/example/core.clj"}}}}
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close