Source dependency graph of the Clojure language. Scans .clj files, extracts definitions, resolves deps, catalogs host refs.
Source dependency graph of the Clojure language. Scans .clj files, extracts definitions, resolves deps, catalogs host refs.
(analyze-source input)Analyze source files. Returns {:classified :layers :file-results}.
Analyze source files. Returns {:classified :layers :file-results}.
(build-full-graph file-results)Build graph from all files. Each def is keyed as ns/name.
Build graph from all files. Each def is keyed as ns/name.
(collect-symbols form)Recursively collect all symbols (as strings) referenced in a form.
Recursively collect all symbols (as strings) referenced in a form.
(extract-defs zloc)Walk top-level forms, extract all def-like names.
Walk top-level forms, extract all def-like names.
(extract-host-contract graph)Aggregate all host references across the entire codebase.
Aggregate all host references across the entire codebase.
(find-clj-files root)Find all .clj files under a directory (including root level).
Find all .clj files under a directory (including root level).
(ns-from-path path root)Derive namespace from file path relative to src root.
Derive namespace from file path relative to src root.
(parse-host-ref sym-str)Parse a symbol string into host reference info, or nil.
Parse a symbol string into host reference info, or nil.
(print-host-data classified)Output per-namespace host analysis as EDN, for consumption by specgen --coverage.
Output per-namespace host analysis as EDN, for consumption by specgen --coverage.
(process-file path root)Parse one .clj file. Returns {:ns _ :defs [...] :parse-error? bool}.
Parse one .clj file. Returns {:ns _ :defs [...] :parse-error? bool}.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |