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)
source

add-missing-importclj

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

add-missing-libspecclj

(add-missing-libspec zloc uri db components)
source

add-require-suggestionclj

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

add-simple-requireclj

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

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)
source

add-to-rcf*clj

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

cleaning-ns-editsclj

(cleaning-ns-edits uri db edits)
source

find-alias-ns-pairsclj

(find-alias-ns-pairs db uri)
source

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
sourceraw docstring

find-missing-importsclj

(find-missing-imports zloc db)
source

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.
sourceraw 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.
sourceraw docstring

find-require-suggestionsclj

(find-require-suggestions zloc uri db)
source

safe-sexprclj

(safe-sexpr zloc)
source

safe-symclj

(safe-sym zloc)
source

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