diff options
author | Paul Phillips <paulp@improving.org> | 2012-02-22 12:04:27 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-02-22 12:26:32 -0800 |
commit | 455129b32d8634856917f9ecf67987567fb46723 (patch) | |
tree | 61ec41d4a08227d20f6425577862ed0ce43d8db5 /src/compiler/scala/tools/nsc/transform/Flatten.scala | |
parent | 031dbf4276971e108fb01699c0bf65eb85b2e1ff (diff) | |
download | scala-455129b32d8634856917f9ecf67987567fb46723.tar.gz scala-455129b32d8634856917f9ecf67987567fb46723.tar.bz2 scala-455129b32d8634856917f9ecf67987567fb46723.zip |
More use of perRunCaches.
In SpecializeTypes and beyond. It is hard for me to say with
confidence what might affect the IDE for the worse, but this is
all intended for the IDE's benefit (if only in terms of insurance)
and hopefully intention matches reality.
Diffstat (limited to 'src/compiler/scala/tools/nsc/transform/Flatten.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/Flatten.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/Flatten.scala b/src/compiler/scala/tools/nsc/transform/Flatten.scala index 89f1cc26e0..aa37c966e3 100644 --- a/src/compiler/scala/tools/nsc/transform/Flatten.scala +++ b/src/compiler/scala/tools/nsc/transform/Flatten.scala @@ -102,7 +102,7 @@ abstract class Flatten extends InfoTransform { class Flattener extends Transformer { /** Buffers for lifted out classes */ - private val liftedDefs = new mutable.HashMap[Symbol, ListBuffer[Tree]] + private val liftedDefs = perRunCaches.newMap[Symbol, ListBuffer[Tree]]() override def transform(tree: Tree): Tree = { tree match { |