-
Notifications
You must be signed in to change notification settings - Fork 69
Closed
Description
core/clj-file?) |
refactor-nrepl/src/refactor_nrepl/analyzer.clj
Lines 141 to 150 in 0a9a6ee
(defn warm-ast-cache [] | |
(doseq [f (tracker/project-files-in-topo-order true)] | |
(try | |
(ns-ast (slurp f)) | |
(catch Throwable th | |
(when (System/getProperty "refactor-nrepl.internal.log-exceptions") | |
(-> th .printStackTrace)) | |
nil ; noop, ast-status will be reported separately | |
))) | |
(ast-stats)) |
That's mostly desired behavior, since tools.analyzer only works for JVM Clojure.
However, we could also pick up .cljc files and tell tools.analyzer, if needed, to read them with :read-cond :allow :features #{:clj}
.
This would result in a more complete analysis which therefore would be less prone to errors.
Metadata
Metadata
Assignees
Labels
No labels