summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-04-06 13:13:08 -0700
committerPaul Phillips <paulp@improving.org>2012-04-06 15:16:49 -0700
commit1a6408c42928211d5d119317cc1aec4eb2481101 (patch)
tree9a712067d4b798e52f6f9227d292f94eaa91ba01 /src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala
parent9b67137252b985e998229658082dfb026fcfa840 (diff)
downloadscala-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/MethodSynthesis.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala b/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala
index 04341fea25..82ffc3fd9e 100644
--- a/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala
@@ -96,8 +96,7 @@ trait MethodSynthesis {
finishMethod(m setInfoAndEnter infoFn(m), f)
}
private def cloneInternal(original: Symbol, f: Symbol => Tree, name: Name): Tree = {
- val m = original.cloneSymbol(clazz, newMethodFlags(original)) setPos clazz.pos.focus
- m.name = name
+ val m = original.cloneSymbol(clazz, newMethodFlags(original), name) setPos clazz.pos.focus
finishMethod(clazz.info.decls enter m, f)
}