aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/SymbolLoaders.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-12-18 16:10:22 +0100
committerMartin Odersky <odersky@gmail.com>2014-12-18 16:10:22 +0100
commit064974fd4877bcf77dc495f1dcef9dfd2d626435 (patch)
tree2cd28dab4abed864b4ef5398e984f54228ee0d88 /src/dotty/tools/dotc/core/SymbolLoaders.scala
parent223fa2bea328fc53f87d6f9d0c28c67545e831af (diff)
downloaddotty-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/SymbolLoaders.scala')
-rw-r--r--src/dotty/tools/dotc/core/SymbolLoaders.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/SymbolLoaders.scala b/src/dotty/tools/dotc/core/SymbolLoaders.scala
index 41ec10c18..0ad34e16a 100644
--- a/src/dotty/tools/dotc/core/SymbolLoaders.scala
+++ b/src/dotty/tools/dotc/core/SymbolLoaders.scala
@@ -148,13 +148,13 @@ class SymbolLoaders {
override def sourceModule(implicit ctx: Context) = _sourceModule
def description = "package loader " + classpath.name
- private[core] val preDecls: MutableScope = newScope
+ private[core] val currentDecls: MutableScope = newScope
def doComplete(root: SymDenotation)(implicit ctx: Context): Unit = {
assert(root is PackageClass, root)
def maybeModuleClass(classRep: ClassPath#ClassRep) = classRep.name.last == '$'
val pre = root.owner.thisType
- root.info = ClassInfo(pre, root.symbol.asClass, Nil, preDecls, pre select sourceModule)
+ root.info = ClassInfo(pre, root.symbol.asClass, Nil, currentDecls, pre select sourceModule)
if (!sourceModule.isCompleted)
sourceModule.completer.complete(sourceModule)
if (!root.isRoot) {