(ast-of-condition-test kind fn-ast method-num condition-idx condition-form)
(constant-ast ast)
Return nil if 'ast' is not one that we can determine to be a constant value. Does not do all compile-time evaluation that would be possible, to keep things relatively simple. If we can determine it to be a constant value, return an ast that can be used to issue a warning, that contains the constant value.
Return nil if 'ast' is not one that we can determine to be a constant value. Does not do all compile-time evaluation that would be possible, to keep things relatively simple. If we can determine it to be a constant value, return an ast that can be used to issue a warning, that contains the constant value.
(dont-warn-for-symbol? sym)
Return logical true for symbols in arg vectors that should never be warned about as duplicates.
By convention, _ is a parameter intended to be ignored, and often occurs multiple times in the same arg vector when it is used. Also do not warn about any other symbols that begin with _. This gives Eastwood users a way to selectively disable such warnings if they wish.
Return logical true for symbols in arg vectors that should never be warned about as duplicates. By convention, _ is a parameter intended to be ignored, and often occurs multiple times in the same arg vector when it is used. Also do not warn about any other symbols that begin with _. This gives Eastwood users a way to selectively disable such warnings if they wish.
(get-do-body-from-fn-or-with-meta-ast fn-or-with-meta-ast method-num)
(keywords-very-similar? name-str1 name-str2)
Check for the special case of two names differing only by one of them being equal to "_" followed by the other name. Apparently this is somewhat common for keywords names when interacting with Datomic.
Check for the special case of two names differing only by one of them being equal to "_" followed by the other name. Apparently this is somewhat common for keywords names when interacting with Datomic.
(logical-true-test ast)
Return the ast to report a warning for, if the 'ast' argument represents not necessarily a constant expression, but definitely an expression that evaluates as logical true in an if test, e.g. vectors, maps, and sets, even if they have contents that vary at run time, are always logical true. Otherwise, return nil.
Return the ast to report a warning for, if the 'ast' argument represents not necessarily a constant expression, but definitely an expression that evaluates as logical true in an if test, e.g. vectors, maps, and sets, even if they have contents that vary at run time, are always logical true. Otherwise, return nil.
(wrong-pre-post-messages opt
kind
conditions
method-num
ast
condition-desc-begin
condition-desc-middle)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close