Avatar
Kishikawa Katsumi 4/18/2023 1:08 PM
https://forums.swift.org/t/macros-accessing-the-parent-context-of-a-syntax-node-passed-to-a-macro/64443/14 マクロの親のノードが取れる要件、絶対にあったほうがいいんだけど明確なユースケースっていうとパッと出てこないな。
To me, there are currently three major categories of information not accessible by macros: Lexical context Type information about sub-expressions Reflection of arbitrary types It looks like the proposed addition would be sufficient to solve the first case, at least for the macros I have experimented with. I don't have a preference as to wheth...