Completion for vars and classes in the current namespace.
Completion for vars and classes in the current namespace.
(candidates prefix ns context)Returns a list of namespace-bound candidates, with namespace being
either the scope (if prefix is scoped), ns arg or the namespace
extracted from context if inside ns declaration.
Returns a list of namespace-bound candidates, with namespace being either the scope (if prefix is scoped), `ns` arg or the namespace extracted from context if inside `ns` declaration.
(dash-matches? prefix var)Tests if prefix partially matches a var name with dashes as separators.
Tests if prefix partially matches a var name with dashes as separators.
(doc symbol-str ns)Documentation function for this sources' completions.
Documentation function for this sources' completions.
(generate-docstring m)Generates a docstring from a given var metadata. Copied from
clojure.repl with some minor modifications.
Generates a docstring from a given var metadata. Copied from `clojure.repl` with some minor modifications.
(get-scope-and-prefix s ns)Tries to get take apart scope namespace and prefix in prefixes like
scope/var.
Tries to get take apart scope namespace and prefix in prefixes like `scope/var`.
(try-get-ns-from-context context)Tries to extract a namespace name if context is a ns definition.
Tries to extract a namespace name if context is a `ns` definition.
(var-symbol? x)Test if prefix resembles a var name.
Test if prefix resembles a var name.
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 |