diff options
author | Paul Phillips <paulp@improving.org> | 2012-02-13 16:23:05 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-02-13 16:25:02 -0800 |
commit | 8b06f1b27c54e9d02739d7062aad2711cd758188 (patch) | |
tree | 8c440b6542c3ed4260fa5e4c56906f13e5e691d0 /src/compiler | |
parent | 46408a6a44ed5f7592b5185589d5016e55c59cc2 (diff) | |
download | scala-8b06f1b27c54e9d02739d7062aad2711cd758188.tar.gz scala-8b06f1b27c54e9d02739d7062aad2711cd758188.tar.bz2 scala-8b06f1b27c54e9d02739d7062aad2711cd758188.zip |
Modest deverbosification of recent commit.
Review by @scalamacros.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/reflect/runtime/TreeBuildUtil.scala | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/src/compiler/scala/reflect/runtime/TreeBuildUtil.scala b/src/compiler/scala/reflect/runtime/TreeBuildUtil.scala index 0b54843344..61001a4778 100644 --- a/src/compiler/scala/reflect/runtime/TreeBuildUtil.scala +++ b/src/compiler/scala/reflect/runtime/TreeBuildUtil.scala @@ -2,23 +2,12 @@ package scala.reflect package runtime trait TreeBuildUtil extends Universe with api.TreeBuildUtil { - def staticClass(fullname: String): Symbol = { - val sym = definitions.getRequiredClass(fullname) - sym.initialize - sym - } - - def staticModule(fullname: String): Symbol = { - val sym = definitions.getRequiredModule(fullname) - sym.initialize - sym - } - - def thisModuleType(fullname: String) = { - val sym = staticModule(fullname).moduleClass - sym.initialize - sym.thisType - } + /** A comment to the effect of why initialize was added to all these + * would be appreciated. (We may as well start somewhere.) + */ + def staticClass(fullname: String) = definitions.getRequiredClass(fullname).initialize + def staticModule(fullname: String) = definitions.getRequiredModule(fullname).initialize + def thisModuleType(fullname: String) = staticModule(fullname).moduleClass.initialize.thisType /** Selects type symbol with given name from the defined members of prefix type */ |