aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/SymDenotations.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-02-03 12:53:56 +0100
committerMartin Odersky <odersky@gmail.com>2013-02-03 12:53:56 +0100
commit900dca87c35d74a893ab93ff2d73a72bd7fdbb78 (patch)
tree4f5ea4d19a36f4f4e4553f7ec007eb2d7dfc3fc4 /src/dotty/tools/dotc/core/SymDenotations.scala
parent8ac1b32ad3b190de82f5c4f1d1666f093ad8c20f (diff)
downloaddotty-900dca87c35d74a893ab93ff2d73a72bd7fdbb78.tar.gz
dotty-900dca87c35d74a893ab93ff2d73a72bd7fdbb78.tar.bz2
dotty-900dca87c35d74a893ab93ff2d73a72bd7fdbb78.zip
Making contexts retained in completers condensed to avoid space leaks
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/SymDenotations.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala
index e916d0e70..b8fc49a45 100644
--- a/src/dotty/tools/dotc/core/SymDenotations.scala
+++ b/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -717,7 +717,8 @@ object SymDenotations {
type SymCompleter = Completer[LazySymDenotation]
type ClassCompleter = Completer[LazyClassDenotation]
- class ModuleCompleter(implicit ctx: Context) extends Completer[LazySymDenotation] {
+ class ModuleCompleter(cctx: CondensedContext) extends Completer[LazySymDenotation] {
+ implicit val ctx: Context = cctx
def classDenot(denot: LazySymDenotation) =
denot.moduleClass.denot.asInstanceOf[LazyClassDenotation]
def copyLoadedFields(denot: LazySymDenotation, from: LazyClassDenotation) = {