diff options
author | Martin Odersky <odersky@gmail.com> | 2013-08-20 11:55:56 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-08-20 11:59:59 +0200 |
commit | b048b321f5f700804ce4e3e67720eb65297eaf39 (patch) | |
tree | 56205d39392df6526089e82b83094320ea2ed27a /src/dotty/tools/dotc/core/pickling/ClassfileParser.scala | |
parent | 9113c243875cd7f6c8ae6774834ea9a0a468acbc (diff) | |
download | dotty-b048b321f5f700804ce4e3e67720eb65297eaf39.tar.gz dotty-b048b321f5f700804ce4e3e67720eb65297eaf39.tar.bz2 dotty-b048b321f5f700804ce4e3e67720eb65297eaf39.zip |
Refactored scheme for maintaining sourceModule, moduleClass and decls in lazy types.
New scheme is more composable.
Diffstat (limited to 'src/dotty/tools/dotc/core/pickling/ClassfileParser.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/pickling/ClassfileParser.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/pickling/ClassfileParser.scala b/src/dotty/tools/dotc/core/pickling/ClassfileParser.scala index e07f87b1d..ce26c604e 100644 --- a/src/dotty/tools/dotc/core/pickling/ClassfileParser.scala +++ b/src/dotty/tools/dotc/core/pickling/ClassfileParser.scala @@ -35,8 +35,8 @@ class ClassfileParser( protected var currentClassName: Name = _ // JVM name of the current class protected var classTParams = Map[Name,Symbol]() - classRoot.info = new ClassCompleterWithDecls(instanceScope) - moduleRoot.info = new ModuleClassCompleterWithDecls(staticModule, staticScope) + classRoot.info = (new NoCompleter).withDecls(instanceScope) + moduleRoot.info = (new NoCompleter).withDecls(staticScope).withSourceModule(staticModule) private def currentIsTopLevel = classRoot.owner is Flags.PackageClass |