(add-require-suggestion zloc
uri
chosen-ns
chosen-alias
chosen-refer
js-require
db
{:keys [producer]})(add-to-namespace* zloc
uri
{libspec-type :type
lib-sym :lib
refer-sym :refer
alias-sym :alias
class-sym :class}
db)(add-to-rcf* zloc
{libspec-type :type
lib-sym :lib
refer-sym :refer
alias-sym :alias
class-sym :class}
_)(find-alias-suggestions zloc uri db)if zloc has a fully qualified namespace, returns a list of suggestions for aliases; nil otherwise
if zloc has a fully qualified namespace, returns a list of suggestions for aliases; nil otherwise
(find-missing-ns-require zloc uri db)Returns map with found ns and alias or refer.
Returns map with found ns and alias or refer.
(find-namespace-suggestions cursor-namespace-str ns-alias-pairs)Given a list of `[["ns" "alias"]] pairs suggest possible requires. Will only suggest existing namespaces. Suggestions should be ordered from most commonly used to least.
Given a list of `[["ns" "alias"]] pairs suggest possible requires. Will only suggest existing namespaces. Suggestions should be ordered from most commonly used to least.
(swap-namespace-with-alias zloc target-ns chosen-alias)applies the chosen alias suggestion to the target zloc and potentially changes the libspec to include the new alias
applies the chosen alias suggestion to the target zloc and potentially changes the libspec to include the new alias
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 |