diff options
author | Paul Phillips <paulp@improving.org> | 2011-07-06 17:28:04 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-07-06 17:28:04 +0000 |
commit | 262114974bfab763b282bf0aa2ec5b902fdd69f5 (patch) | |
tree | 02254d5a907ba32866384ef2fb214831dd2a8aaa /src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala | |
parent | a21cb1b3759fcb079c9bd21a598cc732d8481072 (diff) | |
download | scala-262114974bfab763b282bf0aa2ec5b902fdd69f5.tar.gz scala-262114974bfab763b282bf0aa2ec5b902fdd69f5.tar.bz2 scala-262114974bfab763b282bf0aa2ec5b902fdd69f5.zip |
Created simple infrastructure for creating muta...
Created simple infrastructure for creating mutable sets and maps which
are automatically cleared after each compilation run. Since I am not too
familiar with the mechanics of the presentation compiler I'm not sure
this addresses the problem, or that it doesn't clear something which
shouldn't be cleared. Also, this is only a sampling of possible mutable
sets and maps: let me know if it does the job and I can expand it.
Review by dragos.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala b/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala index 45663c8bee..6057a77393 100644 --- a/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala +++ b/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala @@ -66,7 +66,7 @@ trait TypeDiagnostics { /** A map of Positions to addendums - if an error involves a position in * the map, the addendum should also be printed. */ - private var addendums = mutable.Map[Position, () => String]() + private var addendums = perRunCaches.newMap[Position, () => String]() def setAddendum(pos: Position, msg: () => String) = if (pos != NoPosition) |