syntax-quote resolves on dot forms

Description

In Clojure or ClojureScript, if you evaluate a form involving syntax-quote of a dot form, the instance member / field, is not resolved. For example, in ClojureScript,

yields

If you use (the ClojureScript implementation of) tools.reader on such a form, you can see that the .x symbol is resolved (and if using cljs.analyzer/resolve-sym, you will get a slash).

An additional assertion in cljs.tools.reader-test/read-syntax-quote that illustrates a problem that exists (with at least the ClojureScript implementation of tools.reader):

(This shows that the .x gets resolved to /x.)

Environment

None

Activity

Show:
Nicola Mometto
February 16, 2016, 4:36 PM

This is not a tools.reader issue, `resolve-symbol` is responsible to do that kind of expansion and in CLJS `resolve-symbol` is a dynamic var with no default implementation that the clojurescript compiler defines.

The fix should go there.

Declined

Assignee

Nicola Mometto

Reporter

Mike Fikes

Labels

None

Approval

None

Patch

None

Priority

Major