File: cider-resolve.el.html
The ns cache is a dict of namespaces stored in the connection buffer. This
file offers functions to easily get information about variables from this
cache, given the variable's name and the file's namespace. This
functionality is similar to that offered by the cider-var-info function
(and others). The difference is that all functions in this file operate
without contacting the server (they still rely on an active connection
buffer, but no messages are actually exchanged).
For this reason, the functions here are well suited for very performance-sentitive operations, such as font-locking or indentation. Meanwhile, operations like code-jumping are better off communicating with the middleware, just in the off chance that the cache is outdated.
Below is a typical entry on this cache dict. Note that clojure.core symbols are excluded from the refers to save space.
"cider.nrepl.middleware.track-state"
(dict "aliases"
(dict "cljs" "cider.nrepl.middleware.util.cljs"
"misc" "cider.nrepl.middleware.util.misc"
"set" "clojure.set")
"interns" (dict a
"assoc-state" (dict "arglists"
(("response"
(dict "as" "msg" "keys"
("session")))))
"filter-core" (dict "arglists"
(("refers")))
"make-transport" (dict "arglists"
(((dict "as" "msg" "keys"
("transport")))))
"ns-as-map" (dict "arglists"
(("ns")))
"ns-cache" (dict)
"relevant-meta" (dict "arglists"
(("var")))
"update-vals" (dict "arglists"
(("m" "f")))
"wrap-tracker" (dict "arglists"
(("handler"))))
"refers" (dict "set-descriptor!" "#'nrepl.middleware/set-descriptor!"))
Defined variables (0)
Defined functions (5)
cider-resolve--get-in | (&rest KEYS) |
cider-resolve-alias | (NS ALIAS) |
cider-resolve-core-ns | () |
cider-resolve-ns-symbols | (NS) |
cider-resolve-var | (NS VAR) |