summaryrefslogtreecommitdiff
path: root/tools/locker_scalac
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-09-29 14:20:21 -0700
committerPaul Phillips <paulp@improving.org>2012-09-29 15:01:57 -0700
commit29a59700b4cf1ade91abb6020ba4814be5ef88e7 (patch)
tree72e08ca9fed178bc4166ea00c1521b4d7b4a7975 /tools/locker_scalac
parent2e14b0771569b4fb6cd0273e1480f69c18743832 (diff)
downloadscala-29a59700b4cf1ade91abb6020ba4814be5ef88e7.tar.gz
scala-29a59700b4cf1ade91abb6020ba4814be5ef88e7.tar.bz2
scala-29a59700b4cf1ade91abb6020ba4814be5ef88e7.zip
Added utility function shortClass.
Pretty sick of names like scala> typeOf[List[Int]].getClass.getName res0: String = scala.reflect.internal.Types$TypeRef$$anon$1 I wrote this so I can see what the class of some arbitrary thing is in a way which my little brain can understand. For the example above we get scala> shortClassOfInstance(typeOf[List[Int]]) res0: String = ArgsTypeRef with AliasTypeRef Let's pimp a "shortClassName" onto AnyRef and be happy.
Diffstat (limited to 'tools/locker_scalac')
0 files changed, 0 insertions, 0 deletions