Fork me on GitHub
#clojurescript
<
2024-03-10
>
Braden Shepherdson21:03:01

I'm struggling to write a macro that needs to search an argument form for certain variable references. I want to do things like (= input-sym 'cljs.core/let), but the input symbols are of course unqualified. at macroexpansion time when targeting Clojure I can do (symbol (resolve input-sym)), but I can't seem to find a working equivalent call during macroexpansion for CLJS.

thheller21:03:11

(:name (cljs.analyzer.api/resolve &env input-sym))