Liking cljdoc? Tell your friends :D

clojure-lsp.feature.clauses

Identify clauses.

What constitutes a clause is context dependent. In a map, it will be a key/value pair. In a vector it will be a single element, unless the vector establishes bindings as in let, in which case it will be a pair of elements. This code tries to be aware of common functions, data structures and other forms, and their conventions for establishing clauses.

It also tries to be aware of how comments are usually written in Clojure code. It associates comments 'above' a clause and on the same line 'after' a clause with the clause.

Identify clauses.

What constitutes a clause is context dependent. In a map, it will be a
key/value pair. In a vector it will be a single element, unless the vector
establishes bindings as in `let`, in which case it will be a pair of elements.
This code tries to be aware of common functions, data structures and other
forms, and their conventions for establishing clauses.

It also tries to be aware of how comments are usually written in Clojure code.
It associates comments 'above' a clause and on the same line 'after' a clause
with the clause.
raw docstring

clause-specclj

(clause-spec zloc uri db)
source

identifyclj

(identify {:keys [zloc breadth rind pulp]})

Identifies the clauses described by the clause-spec.

Identifies the clauses described by the clause-spec.
sourceraw docstring

loc-of-nodesclj

(loc-of-nodes clause-nodes)
source

nodes-rangeclj

(nodes-range clause-nodes)
source

whitespace-or-comment-tagsclj

source

z-downclj

(z-down zloc)
source

z-leftclj

(z-left zloc)
source

z-leftmost?clj

(z-leftmost? zloc)
source

z-rightclj

(z-right zloc)
source

z-take-whileclj

(z-take-while zloc f p?)

Returns a sequence of locations in the direction of f from zloc that satisfy p?.

Returns a sequence of locations in the direction of `f` from `zloc` that
satisfy `p?`.
sourceraw docstring

z-upclj

(z-up zloc)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close