It's clear to me I'll have to write a lot of support functions; you may as well get used to it.
def typeArgs(tp: Type) = tp match {
case TypeRef(_, _, args) => args
case _ => Nil
}
You can pimp it on if you want:
implicit class TypeOps(val tp: Type) extends AnyVal {
def typeArgs: List[Type] = tp match {
case TypeRef(_, _, args) => args
case _ => Nil
}
}
At this stage of the game, doing this and organizing it nicely for inclusion in some future release will be more productive than lobbying for new methods.