(forms source-reader)
Return a lazy sequence of all forms in a source file using source-reader
to read them.
Return a lazy sequence of all forms in a source file using `source-reader` to read them.
(ns-form ns-symbol)
Return the ns
declaration form from the file associated with the namespace named by ns-symbol
.
(ns-form 'cloverage.source) ;; -> (ns cloverage.source (:require [clojure.java.io :as io] [clojure.string :as str] [clojure.tools.namespace.file :as ns.file]) (:import clojure.lang.RT java.io.File))
Return the `ns` declaration form from the file associated with the namespace named by `ns-symbol`. (ns-form 'cloverage.source) ;; -> (ns cloverage.source (:require [clojure.java.io :as io] [clojure.string :as str] [clojure.tools.namespace.file :as ns.file]) (:import clojure.lang.RT java.io.File))
(resource-path ns-symbol)
Given a symbol naming a namespace, return a classpath-relative path to the file defining that namespace.
(resource-path 'cloverage.source) ;; -> "cloverage/source.clj"
Given a symbol naming a namespace, return a classpath-relative path to the file defining that namespace. (resource-path 'cloverage.source) ;; -> "cloverage/source.clj"
(source-file-path resource)
Given a classpath-relative path, return a relative source file path.
Given a classpath-relative path, return a relative source file path.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close