(add-known-alias zloc uri alias-to-add qualified-ns-to-add db)(add-missing-import zloc uri import-name db {:keys [producer]})(add-missing-libspec zloc uri db components)(add-require-suggestion zloc
uri
chosen-ns
chosen-alias
chosen-refer
js-require
db
{:keys [producer]})(add-simple-require zloc uri qualified-ns-to-add db)(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}
_)(cleaning-ns-edits uri db edits)(find-alias-ns-pairs db uri)(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-imports zloc db)(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.
(find-require-suggestions zloc uri db)(safe-sexpr zloc)(safe-sym zloc)(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 |