Liking cljdoc? Tell your friends :D

lucid.legacy.analyzer.utils


-source-infoclj

(-source-info x env)

Returns the source-info of x

Returns the source-info of x
raw docstring

arglist-for-arityclj

(arglist-for-arity fn argc)

Takes a fn node and an argc and returns the matching arglist

Takes a fn node and an argc and returns the matching arglist
raw docstring

boolean?clj

(boolean? x)

Returns true if x is a boolean

Returns true if x is a boolean
raw docstring

classifyclj

(classify form)

Returns a keyword describing the form type

Returns a keyword describing the form type
raw docstring

compile-ifclj/smacro

(compile-if exp then & else)

const-valclj

(const-val {:keys [op val expr]})

Returns the value of a constant node (either :quote or :const)

Returns the value of a constant node (either :quote or :const)
raw docstring

constant?clj

(constant? var)

Returns true if the var is a const

Returns true if the var is a const
raw docstring

ctxclj

(ctx env ctx)

Returns a copy of the passed environment with :context set to ctx

Returns a copy of the passed environment with :context set to ctx
raw docstring

dissoc-envclj

(dissoc-env ast)

Dissocs :env from the ast

Dissocs :env from the ast
raw docstring

dynamic?clj

(dynamic? var)

Returns true if the var is dynamic

Returns true if the var is dynamic
raw docstring

get-colclj

(get-col x env)

Returns the column number of x

Returns the column number of x
raw docstring

get-lineclj

(get-line x env)

Returns the line number of x

Returns the line number of x
raw docstring

into!clj

(into! to from)

Like into, but for transients

Like into, but for transients
raw docstring

macro?clj

(macro? var)

Returns true if the var maps to a macro

Returns true if the var maps to a macro
raw docstring

obj?clj

(obj? x)

Returns true if x implements IObj

Returns true if x implements IObj
raw docstring

private?clj

(private? var)

Returns true if the var is private

Returns true if the var is private
raw docstring

protocol-node?clj

(protocol-node? var)

Returns true if the var maps to a protocol function

Returns true if the var maps to a protocol function
raw docstring

record?clj

(record? x)

Returns true if x is a record

Returns true if x is a record
raw docstring

reference?clj

(reference? x)

Returns true if x implements IReference

Returns true if x implements IReference
raw docstring

regex?clj

(regex? x)

Returns true if x is a regex

Returns true if x is a regex
raw docstring

resolve-nsclj

(resolve-ns ns-sym {:keys [ns namespaces]})

Resolves the ns mapped by the given sym in the env

Resolves the ns mapped by the given sym in the env
raw docstring

resolve-varclj

(resolve-var sym {:keys [ns namespaces] :as env})

Resolves the var mapped by the given sym in the env

Resolves the var mapped by the given sym in the env
raw docstring

rseqvclj

(rseqv v)

source-infoclj

(source-info env)

Returns the source-info from an env

Returns the source-info from an env
raw docstring

type?clj

(type? x)

Returns true if x is a type

Returns true if x is a type
raw docstring

update-keysclj

(update-keys m f)

Applies f to all the keys in the map

Applies f to all the keys in the map
raw docstring

update-kvclj

(update-kv m f)

Applies f to all the keys and vals in the map

Applies f to all the keys and vals in the map
raw docstring

update-valsclj

(update-vals m f)

Applies f to all the vals in the map

Applies f to all the vals in the map
raw docstring

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

× close