Liking cljdoc? Tell your friends :D

skeptic.analysis.bridge.descriptors

Per-form descriptor extraction for Plumatic source forms stored in the project-wide form-refs map, keyed by qualified symbol (built once in skeptic.checking.pipeline/project-state, threaded through bridge ctx). Pipeline stores prepared descriptors, not raw forms. Each descriptor carries the exact source namespace, alias map, and known declaration qsyms used to resolve schema-reference symbols deterministically.

Descriptor shapes: :defn → {:kind :defn :output-form form :arglists {k {:input-forms [...]}}} :def → {:kind :def :schema-form form} :defschema → {:kind :defschema :schema-form form} :schema-source → {:kind :schema-source :schema-form form}

Prepared descriptors add: :source-env → {:ns ns-sym :aliases {alias target-ns} :ref-qsyms #{qsym}}

Per-form descriptor extraction for Plumatic source forms stored in the
project-wide form-refs map, keyed by qualified symbol (built once in
`skeptic.checking.pipeline/project-state`, threaded through bridge ctx).
Pipeline stores prepared descriptors, not raw forms. Each descriptor carries
the exact source namespace, alias map, and known declaration qsyms used to
resolve schema-reference symbols deterministically.

Descriptor shapes:
  :defn      → {:kind :defn :output-form form :arglists {k {:input-forms [...]}}}
  :def       → {:kind :def :schema-form form}
  :defschema → {:kind :defschema :schema-form form}
  :schema-source → {:kind :schema-source :schema-form form}

Prepared descriptors add:
  :source-env → {:ns ns-sym :aliases {alias target-ns} :ref-qsyms #{qsym}}
raw docstring

exact-ref-qsymclj

(exact-ref-qsym {:keys [ref-qsyms] :as source-env} form)

The exact admitted declaration qsym named by form, or nil when the symbol does not name one of the carried declaration qsyms.

The exact admitted declaration qsym named by `form`, or nil when the symbol
does not name one of the carried declaration qsyms.
sourceraw docstring

extract-def-annotation-formclj

(extract-def-annotation-form form)
source

extract-defn-annotation-formclj

(extract-defn-annotation-form form)
source

extract-defschema-body-formclj

(extract-defschema-body-form form)
source

prepare-form-refclj

(prepare-form-ref ns-sym aliases ref-qsyms raw-form)
source

prepare-source-formclj

(prepare-source-form ns-sym aliases ref-qsyms form)
source

raw->descriptorclj

(raw->descriptor raw-form)

Dispatch a raw Plumatic source form to its extractor by head NAME. Pipeline ensures only Plumatic-discovered forms reach this fn, so a name match (under any alias of schema.core) is sufficient. Returns nil for unrecognized heads.

Dispatch a raw Plumatic source form to its extractor by head NAME.
Pipeline ensures only Plumatic-discovered forms reach this fn, so a name
match (under any alias of schema.core) is sufficient. Returns nil for
unrecognized heads.
sourceraw docstring

schema-formclj

(schema-form descriptor)
source

source-envclj

(source-env ns-sym aliases ref-qsyms)
source

source-symbol-qsymclj

(source-symbol-qsym {:keys [ns aliases]} form)

Resolve one source symbol exactly in the descriptor's namespace context. Qualified symbols either expand through an explicit alias or remain as written. Unqualified symbols resolve to the descriptor's own namespace. This returns a single qsym, never a candidate set.

Resolve one source symbol exactly in the descriptor's namespace context.
Qualified symbols either expand through an explicit alias or remain as written.
Unqualified symbols resolve to the descriptor's own namespace. This returns a
single qsym, never a candidate set.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close