Liking cljdoc? Tell your friends :D

clojure-lsp.feature.add-missing-libspec


add-known-aliasclj

(add-known-alias zloc uri alias-to-add qualified-ns-to-add db)

add-missing-importclj

(add-missing-import zloc uri import-name db {:keys [producer]})

add-missing-libspecclj

(add-missing-libspec zloc uri db components)

add-require-suggestionclj

(add-require-suggestion zloc
                        uri
                        chosen-ns
                        chosen-alias
                        chosen-refer
                        js-require
                        db
                        {:keys [producer]})

add-simple-requireclj

(add-simple-require zloc uri qualified-ns-to-add db)

add-to-namespace*clj

(add-to-namespace* zloc
                   uri
                   {libspec-type :type
                    lib-sym :lib
                    refer-sym :refer
                    alias-sym :alias
                    class-sym :class}
                   db)

add-to-rcf*clj

(add-to-rcf* zloc
             {libspec-type :type
              lib-sym :lib
              refer-sym :refer
              alias-sym :alias
              class-sym :class}
             _)

cleaning-ns-editsclj

(cleaning-ns-edits uri db edits)

find-alias-ns-pairsclj

(find-alias-ns-pairs db uri)

find-alias-suggestionsclj

(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
raw docstring

find-missing-importsclj

(find-missing-imports zloc db)

find-missing-ns-requireclj

(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.
raw docstring

find-namespace-suggestionsclj

(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.
raw docstring

find-require-suggestionsclj

(find-require-suggestions zloc uri db)

safe-sexprclj

(safe-sexpr zloc)

safe-symclj

(safe-sym zloc)

swap-namespace-with-aliasclj

(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
raw 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