Within a method being called as a scala (2.11) macro, is there a way to programmatically determine whether a Type
is a case class
or not?
The API for the method I'm working through boils down to this:
def typeIsCaseClass(c: Context)(targetType: c.universe.Type): Boolean = {
// targetType "is case class?"
}
I'm open to altering the API if need be.
Aucun commentaire:
Enregistrer un commentaire