diff options
author | Paul Phillips <paulp@improving.org> | 2012-04-06 13:13:08 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-04-06 15:16:49 -0700 |
commit | 1a6408c42928211d5d119317cc1aec4eb2481101 (patch) | |
tree | 9a712067d4b798e52f6f9227d292f94eaa91ba01 /src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala | |
parent | 9b67137252b985e998229658082dfb026fcfa840 (diff) | |
download | scala-1a6408c42928211d5d119317cc1aec4eb2481101.tar.gz scala-1a6408c42928211d5d119317cc1aec4eb2481101.tar.bz2 scala-1a6408c42928211d5d119317cc1aec4eb2481101.zip |
Flag performance and Name management.
One leads to the other.
Easing some more specific typing into Symbols.
Getting a handle on when where and how people rename
symbols to suit their fancies.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala b/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala index 6efa595d99..3233b7b07c 100644 --- a/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala +++ b/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala @@ -270,8 +270,7 @@ trait TypeDiagnostics { private val savedName = sym.name def restoreName() = sym.name = savedName def isAltered = sym.name != savedName - def modifyName(f: String => String) = - sym.name = newTypeName(f(sym.name.toString)) + def modifyName(f: String => String) = sym setName newTypeName(f(sym.name.toString)) /** Prepend java.lang, scala., or Predef. if this type originated * in one of those. |