haha yeah, I'm trying to bring back self instrumentation to it
You could try to do the work of analyzing ns forms yourself, but I think you might be able to reuse (or at least borrow from) something that exists.
yeah, I have some ideas, but not sure how to do it yet. Was super easy before the conditionals since I was just moving the zipper over the requires and imports and editing symbols
I'm not sure, but isn't something like (z/of-file some-file :clj) useful to have? where the zipper constructors accept a parameter so the built zipper walks as it was read in :clj or :cljs etc?
Yup. Like Alex suggested in the clojure channel, you could also eval. I think I took the approach for https://github.com/lread/test-doc-blocks a while back… but I’d probably look at clj-kondo data analysis first.
I'll take a look tomorrow at all those ideas, thanks!
and thanks for creating rewrite-clj, is super useful!
Here’s https://github.com/lread/test-doc-blocks/blob/main/src/lread/test_doc_blocks/impl/amalg_ns.clj. It’s a bit fuzzy in my brain now and not necessarily a good idea.
Oh I am but a humble adoptive parent of rewrite-clj. It was created by rundis (rewrite-cljs) and xsc (rewrite-clj).
Check back here tomorrow, I expect others will chime in with their ideas.
will do, thanks again!
My pleasure!
@jpmonettas, it dawned on me to wonder how the flow-storm-debugger might be doing this sort of thing... https://github.com/jpmonettas/flow-storm-debugger... there I found you! simple_smile