Liking cljdoc? Tell your friends :D
Clojure only.

clojure.tools.analyzer.passes.jvm.classify-invoke


classify-invokeclj

(classify-invoke {:keys [op args tag env form] :as ast})

If the AST node is an :invoke, check the node in function position,

  • if it is a keyword, transform the node in a :keyword-invoke node;
  • if it is the clojure.core/instance? var and the first argument is a literal class, transform the node in a :instance? node to be inlined by the emitter
  • if it is a protocol function var, transform the node in a :protocol-invoke node
  • if it is a regular function with primitive type hints that match a clojure.lang.IFn$[primitive interface], transform the node in a :prim-invoke node
If the AST node is an :invoke, check the node in function position,
* if it is a keyword, transform the node in a :keyword-invoke node;
* if it is the clojure.core/instance? var and the first argument is a
  literal class, transform the node in a :instance? node to be inlined by
  the emitter
* if it is a protocol function var, transform the node in a :protocol-invoke
  node
* if it is a regular function with primitive type hints that match a
  clojure.lang.IFn$[primitive interface], transform the node in a :prim-invoke
  node
sourceraw docstring

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

× close