From b048b321f5f700804ce4e3e67720eb65297eaf39 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 20 Aug 2013 11:55:56 +0200 Subject: Refactored scheme for maintaining sourceModule, moduleClass and decls in lazy types. New scheme is more composable. --- src/dotty/tools/dotc/core/pickling/ClassfileParser.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dotty/tools/dotc/core/pickling/ClassfileParser.scala') 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 -- cgit v1.2.3