Access to the class tree from the field tree

I would like to write a macro that enriches case classes. When I declare my case class as follows:

case class User(int id, @tagged name)

I want to be able to embed some things in the Tree this class that have only annotations. So far, I have managed to achieve the Symbol encompassing class, but it seems this is not enough (see Eugene answer here ). I also do not want to use the deprecated api c.enclosingClass . Is there a way to get to the parent of ClassDef in paradise 2.1.0 (Scala 2.11)?

+6
source share

All Articles