Description
I'd like to use this issue to start a discussion on what needs to be done in order to add support for cljs and cljc.
Most of what I consider to be the important functionality involves the analyzer and is unavailable outside of clj files.
I'm positive others would like to improve this state too, but for someone who's not familiar with the project trying to tackle these issues seems a bit hopeless.
It would be helpful to start outlining what the current problems are, what solutions could work and lay a path for people who are interested in working on this but don't know where to start.
Some questions I currently have in mind:
-
Why does the current approach cannot work for cljs?
This is not specific to refactor-nrepl, but some pointers on how exactly does the analysis process differ between clj and cljs would make a good resource. -
In principle, are all the existing middlewares applicable to a cljs ast?
It is unclear if there are platform-specific blockers that would prevent this from happening. -
What are some potential solutions for implementing the existing functionality in cljs?
Some high level on how the cljs runtime could integrate with the rest of the middleware. -
Are there any potential problems with having to deal with two distinct analysis results?
Cheers!