Liking cljdoc? Tell your friends :D

sayid.nrepl-middleware


audit->dataclj

(audit->data audit)

Serialize a traced-fns AUDIT (from trace/audit-traces) to bencode data: a list of namespace groups, each with the traced fns in it. Merges the fns traced by namespace and the ones traced individually.

Serialize a traced-fns AUDIT (from `trace/audit-traces`) to bencode data: a
list of namespace groups, each with the traced fns in it.  Merges the fns
traced by namespace and the ones traced individually.
sourceraw docstring

audit-fn->dataclj

(audit-fn->data fn-info)

Serialize one fn-info map from the traced audit to bencode data.

Serialize one fn-info map from the traced audit to bencode data.
sourceraw docstring

buf-query-treeclj

(buf-query-tree q-vec mod-str)

Build and run a buffer query. Q-VEC is the base query; MOD-STR an optional modifier like "a" (ancestors) or "d3" (descendants, depth 3). Returns the result tree, which query-tree->trio renders or query-tree->data turns into data.

Build and run a buffer query.  Q-VEC is the base query; MOD-STR an optional
modifier like "a" (ancestors) or "d3" (descendants, depth 3).  Returns the
result tree, which `query-tree->trio` renders or `query-tree->data` turns into
data.
sourceraw docstring

clj->nreplclj

(clj->nrepl frm)
source

clj->nrepl*clj

(clj->nrepl* v)
source

count-enabled-tracesclj

(count-enabled-traces trace-audit)
source

count-tracesclj

(count-traces trace-audit)
source

find-all-ns-rootsclj

(find-all-ns-roots)
source

find-arg-list-by-lengthclj

(find-arg-list-by-length n [first-list & rest-lists])
source

find-available-symclj

(find-available-sym ns-sym prefix & [init-taken])
source

find-ns-symclj

(find-ns-sym file)
source

fn-trace-actionsclj

Maps a trace `action' string to the workspace function that applies it to a qualified function symbol.

Maps a trace `action' string to the workspace function that applies it to a
qualified function symbol.
sourceraw docstring

gen-instance-exprclj

(gen-instance-expr tree)
source

get-args-sym-templateclj

(get-args-sym-template arglist)
source

get-meta-at-pos-in-sourceclj

(get-meta-at-pos-in-source file line source)
source

get-sym-at-pos-in-sourceclj

(get-sym-at-pos-in-source file pos-line pos-column source)
source

get-top-form-at-pos-in-sourceclj

(get-top-form-at-pos-in-source file line source)
source

lazy-find-available-symclj

(lazy-find-available-sym prefix-seq init-taken)
source

magic-recusive-evalclj

(magic-recusive-eval frm)

Lets us send vars to nrepl client and back. Madness.

Lets us send vars to nrepl client and back. Madness.
sourceraw docstring

mk-avail-sym-lazy-seqclj

(mk-avail-sym-lazy-seq n arglists)
source

node->dataclj

(node->data node)

Serialize one recorded call-tree NODE into a bencode-friendly map. Structural fields stay native (strings, ints, nested maps and lists) so a client can navigate them directly; the arbitrary captured values - args, arg-map and the return (or throw) - are pr-str'd, since they can't round-trip as data. See doc/nrepl-api.md for the documented shape.

Serialize one recorded call-tree NODE into a bencode-friendly map.  Structural
fields stay native (strings, ints, nested maps and lists) so a client can
navigate them directly; the arbitrary captured values - args, arg-map and the
return (or throw) - are `pr-str`'d, since they can't round-trip as data.  See
doc/nrepl-api.md for the documented shape.
sourceraw docstring

parent-name-or-nameclj

source

parse-ns-name-from-sourceclj

(parse-ns-name-from-source source)
source

pos-inside-line-column?clj

(pos-inside-line-column? pos-line
                         pos-column
                         start-line
                         end-line
                         start-col
                         end-col)
source

process-line-metaclj

(process-line-meta line-meta)
source

query*clj

(query* & args)
source

query-tree->dataclj

(query-tree->data tree)

The data counterpart of query-tree->trio: the tree's matched calls as a list of node->data maps.

The data counterpart of `query-tree->trio`: the tree's matched calls as a list
of `node->data` maps.
sourceraw docstring

query-tree->trioclj

(query-tree->trio tree)
source

query-ws-by-file-line-rangeclj

(query-ws-by-file-line-range file start-line line)

Find the tree node that: is smallest or starts latest, contains line and starts at or after start-line.

Find the tree node that: is smallest or starts latest, contains line
and starts at or after start-line.
sourceraw docstring

register-view!clj

(register-view! name view)
source

reply:clj->nreplclj

(reply:clj->nrepl msg out)
source

reply:dataclj

(reply:data msg out)

Reply with OUT sent as-is - no clj->nrepl flattening - and end the op. For the data ops, whose shapes are already built to round-trip over bencode.

Reply with OUT sent as-is - no `clj->nrepl` flattening - and end the op.  For
the data ops, whose shapes are already built to round-trip over bencode.
sourceraw docstring

reply:errorclj

(reply:error msg ex)

Reply to MSG with a CIDER-renderable error response for EX and end the op. Mirrors the :err'/:ex' plus :error'/:done' status convention used by cider-nrepl, so the client surfaces the failure instead of silently getting no value.

Reply to MSG with a CIDER-renderable error response for EX and end the op.
Mirrors the `:err'/`:ex' plus `:error'/`:done' status convention used by
cider-nrepl, so the client surfaces the failure instead of silently getting
no value.
sourceraw docstring

run-queryclj

(run-query query)

Parse a printed QUERY form (a string), eval any embedded vars via magic-recusive-eval, and run it. Returns the result tree.

Parse a printed QUERY form (a string), eval any embedded vars via
`magic-recusive-eval`, and run it.  Returns the result tree.
sourceraw docstring

sayid-all-tracesclj

(sayid-all-traces {:keys [action] :as msg})

Apply trace ACTION (enable/disable/remove) to every trace at once.

Apply trace ACTION (enable/disable/remove) to every trace at once.
sourceraw docstring

sayid-buf-queryclj

(sayid-buf-query q-vec mod-str)
source

sayid-clear-logclj

(sayid-clear-log {:keys [transport] :as msg})
source

sayid-def-valueclj

(sayid-def-value {:keys [transport trace-id path] :as msg})
source

sayid-find-all-ns-rootsclj

(sayid-find-all-ns-roots {:keys [transport] :as msg})
source

sayid-gen-instance-exprclj

(sayid-gen-instance-expr {:keys [transport trace-id] :as msg})
source

sayid-get-enabled-trace-countclj

(sayid-get-enabled-trace-count {:keys [transport] :as msg})
source

sayid-get-meta-at-pointclj

(sayid-get-meta-at-point {:keys [transport source file line] :as msg})
source

sayid-get-trace-countclj

(sayid-get-trace-count {:keys [transport] :as msg})
source

sayid-get-viewsclj

(sayid-get-views {:keys [transport source file line] :as msg})
source

sayid-get-workspaceclj

(sayid-get-workspace msg)
source

sayid-get-workspace-dataclj

(sayid-get-workspace-data msg)

Return the recorded call tree as data - a list of root call nodes, each a map whose children are more such nodes - for clients that render it themselves. The rendered counterpart is sayid-get-workspace; see doc/nrepl-api.md for the shape.

Return the recorded call tree as data - a list of root call nodes, each a map
whose `children` are more such nodes - for clients that render it themselves.
The rendered counterpart is `sayid-get-workspace`; see doc/nrepl-api.md for the
shape.
sourceraw docstring

sayid-nrepl-opsclj

source

sayid-pprint-valueclj

(sayid-pprint-value {:keys [transport trace-id path] :as msg})
source

sayid-queryclj

(sayid-query {:keys [query] :as msg})
source

sayid-query-by-fnclj

(sayid-query-by-fn {:keys [fn-name mod] :as msg})
source

sayid-query-by-fn-dataclj

(sayid-query-by-fn-data {:keys [fn-name mod] :as msg})

Data counterpart of sayid-query-by-fn.

Data counterpart of `sayid-query-by-fn`.
sourceraw docstring

sayid-query-by-idclj

(sayid-query-by-id {:keys [trace-id mod] :as msg})
source

sayid-query-by-id-dataclj

(sayid-query-by-id-data {:keys [trace-id mod] :as msg})

Data counterpart of sayid-query-by-id.

Data counterpart of `sayid-query-by-id`.
sourceraw docstring

sayid-query-dataclj

(sayid-query-data {:keys [query] :as msg})

Data counterpart of sayid-query: run QUERY and return the matched calls as node data. See doc/nrepl-api.md.

Data counterpart of `sayid-query`: run QUERY and return the matched calls as
node data.  See doc/nrepl-api.md.
sourceraw docstring

sayid-query-form-at-pointclj

(sayid-query-form-at-point {:keys [file line] :as msg})
source

sayid-reset-workspaceclj

(sayid-reset-workspace {:keys [transport] :as msg})
source

sayid-set-viewclj

(sayid-set-view {:keys [transport view-name] :as msg})
source

sayid-show-tracedclj

(sayid-show-traced {:keys [ns] :as msg})
source

sayid-show-traced-dataclj

(sayid-show-traced-data {:keys [ns] :as msg})

Return what Sayid has traced as data - a list of namespace groups, each with its traced functions - for clients that render it themselves. With a non-empty NS, restrict to that namespace. The rendered counterpart is sayid-show-traced.

Return what Sayid has traced as data - a list of namespace groups, each with
its traced functions - for clients that render it themselves.  With a non-empty
NS, restrict to that namespace.  The rendered counterpart is `sayid-show-traced`.
sourceraw docstring

sayid-toggle-viewclj

(sayid-toggle-view {:keys [transport] :as msg})
source

sayid-trace-all-ns-in-dirclj

(sayid-trace-all-ns-in-dir {:keys [transport dir] :as msg})
source

sayid-trace-fnclj

(sayid-trace-fn {:keys [action fn-name fn-ns] :as msg})

Apply trace ACTION to the function named by MSG's fn-ns/fn-name.

Apply trace ACTION to the function named by MSG's fn-ns/fn-name.
sourceraw docstring

sayid-trace-fn-at-pointclj

(sayid-trace-fn-at-point {:keys [action file line column source] :as msg})

Apply trace ACTION to the function whose symbol sits at the cursor position described by MSG (file/line/column/source). Replies with the resolved symbol, or nil when nothing resolves there.

Apply trace ACTION to the function whose symbol sits at the cursor position
described by MSG (file/line/column/source).  Replies with the resolved symbol,
or nil when nothing resolves there.
sourceraw docstring

sayid-trace-nsclj

(sayid-trace-ns {:keys [action ns] :as msg})

Apply trace ACTION (enable/disable/remove) to the namespace named by MSG's ns.

Apply trace ACTION (enable/disable/remove) to the namespace named by MSG's ns.
sourceraw docstring

sayid-trace-ns-by-patternclj

(sayid-trace-ns-by-pattern {:keys [transport ns-pattern ref-ns] :as msg})
source

sayid-trace-ns-in-fileclj

(sayid-trace-ns-in-file {:keys [transport file] :as msg})
source

sayid-versionclj

(sayid-version msg)
source

selected-viewclj

source

send-status-doneclj

(send-status-done msg)
source

str-vec->arg-pathclj

(str-vec->arg-path [kw & idx])
source

throw->dataclj

(throw->data thrown)

Trim a captured :throw (a Throwable->map) to the bencode-friendly bits a client needs: the message, the exception class, and any ex-data. The full stack trace stays out of the wire shape.

Trim a captured `:throw` (a `Throwable->map`) to the bencode-friendly bits a
client needs: the message, the exception class, and any ex-data.  The full
stack trace stays out of the wire shape.
sourceraw docstring

tree-contains-inner-trace?clj

(tree-contains-inner-trace? tree)
source

try-find-ns-rootclj

(try-find-ns-root ns-sym)
source

viewsclj

source

wrap-sayidclj

(wrap-sayid handler)
source

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