From 064974fd4877bcf77dc495f1dcef9dfd2d626435 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 18 Dec 2014 16:10:22 +0100 Subject: Better encapsulation and naming for preDecls. Avoid it being confused with unforcedDecls. Hence preDecls -> currentPackageDecls and reduce visibility to private[core]. --- src/dotty/tools/dotc/core/SymDenotations.scala | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala') diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala index 224b65b43..a91b61692 100644 --- a/src/dotty/tools/dotc/core/SymDenotations.scala +++ b/src/dotty/tools/dotc/core/SymDenotations.scala @@ -254,11 +254,10 @@ object SymDenotations { /** If this is a package class, the symbols entered in it * before it is completed. (this is needed to eagerly enter synthetic * aliases such as AnyRef into a package class without forcing it. - * Right now, I believe the only usage is for the AnyRef alias - * in Definitions. + * Right now, the only usage is for the AnyRef alias in Definitions. */ - final def preDecls(implicit ctx: Context): MutableScope = myInfo match { - case pinfo: SymbolLoaders # PackageLoader => pinfo.preDecls + final private[core] def currentPackageDecls(implicit ctx: Context): MutableScope = myInfo match { + case pinfo: SymbolLoaders # PackageLoader => pinfo.currentDecls case _ => unforcedDecls.asInstanceOf[MutableScope] } -- cgit v1.2.3