Welcome! Please see the About page for a little more info on how this works.

0 votes
in tools.analyzer by

Problem

clojure.lang.Compiler/analyzer is much faster than clojure.tools.analyzer.jvm/analyze.

It would be nice if we took jvm.tools.analyzer's approach to converting clojure.lang.Compiler/analyze to a map, but returned the same AST as tools.analyzer.jvm.

Notes

:env must contain :context, :locals, :ns and the source info.

We can create an extra pass to fix up the :env if performance is adequate.

TAJ uses :form to find type hints, but it might not be needed since Compiler/analyze resolves reflection itself.

Branch: (link: https://github.com/clojure/tools.analyzer.jvm/tree/TANAL-113 text: TANAL-113)

1 Answer

0 votes
by
Reference: https://clojure.atlassian.net/browse/TANAL-113 (reported by ambrosebs)
...