diff options
author | Martin Odersky <odersky@gmail.com> | 2014-12-18 16:10:22 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-12-18 16:10:22 +0100 |
commit | 064974fd4877bcf77dc495f1dcef9dfd2d626435 (patch) | |
tree | 2cd28dab4abed864b4ef5398e984f54228ee0d88 /src/dotty/tools/dotc/core/SymDenotations.scala | |
parent | 223fa2bea328fc53f87d6f9d0c28c67545e831af (diff) | |
download | dotty-064974fd4877bcf77dc495f1dcef9dfd2d626435.tar.gz dotty-064974fd4877bcf77dc495f1dcef9dfd2d626435.tar.bz2 dotty-064974fd4877bcf77dc495f1dcef9dfd2d626435.zip |
Better encapsulation and naming for preDecls.
Avoid it being confused with unforcedDecls. Hence
preDecls -> currentPackageDecls
and reduce visibility to private[core].
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/SymDenotations.scala | 7 |
1 files changed, 3 insertions, 4 deletions
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] } |