2
在被称为scala(2.11)宏的方法中,有没有一种方法可以通过编程来确定Type
是否为case class
?检测scala宏中的case类
对我通过工作方法的API归结为:
def typeIsCaseClass(c: Context)(targetType: c.universe.Type): Boolean = {
// targetType "is case class?"
}
我愿意改变API如果需要的话。