summaryrefslogtreecommitdiff
path: root/src/interactive
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2014-02-09 18:41:16 +0100
committerJason Zaugg <jzaugg@gmail.com>2014-02-09 22:08:03 +0100
commit6f05acaa43d8aa036e26f68937e71dbae60bb5b4 (patch)
treeec4a977fd12b6b2365e2d8e6bdd6d5bcdcd56ab3 /src/interactive
parent08e51dfec50842253afb87cc5ae3c7400dc18ced (diff)
downloadscala-6f05acaa43d8aa036e26f68937e71dbae60bb5b4.tar.gz
scala-6f05acaa43d8aa036e26f68937e71dbae60bb5b4.tar.bz2
scala-6f05acaa43d8aa036e26f68937e71dbae60bb5b4.zip
Optimization: use AnyRef map for Namer -> Typer tree handoff
And uses a map per-compilation unit, rather than one per Typer. One small change required: we now need to clear this map in the the interactive compiler which reuses compilation units, rather than in the call to `Typer#reset`.
Diffstat (limited to 'src/interactive')
-rw-r--r--src/interactive/scala/tools/nsc/interactive/Global.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/interactive/scala/tools/nsc/interactive/Global.scala b/src/interactive/scala/tools/nsc/interactive/Global.scala
index 0e897d6492..279b841714 100644
--- a/src/interactive/scala/tools/nsc/interactive/Global.scala
+++ b/src/interactive/scala/tools/nsc/interactive/Global.scala
@@ -638,6 +638,7 @@ class Global(settings: Settings, _reporter: Reporter, projectName: String = "")
unit.problems.clear()
unit.body = EmptyTree
unit.status = NotLoaded
+ unit.transformed.clear()
}
/** Parse unit and create a name index, unless this has already been done before */