summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-03-04 20:18:41 +0000
committerPaul Phillips <paulp@improving.org>2010-03-04 20:18:41 +0000
commitcb39da4caff8ff3c2f085d8913507cb205ae7f7b (patch)
treefbc02dc1d737fcd82eb4651bd370b2b8b43229ab /src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
parentf9c2792695a80e6a20414bc2008bc33bcb9d8cc9 (diff)
downloadscala-cb39da4caff8ff3c2f085d8913507cb205ae7f7b.tar.gz
scala-cb39da4caff8ff3c2f085d8913507cb205ae7f7b.tar.bz2
scala-cb39da4caff8ff3c2f085d8913507cb205ae7f7b.zip
Renamed the linkedFooOfBar methods in Symbol to...
Renamed the linkedFooOfBar methods in Symbol to be internally consistent and in line with modern nomenclature. No review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala')
-rw-r--r--src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala b/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
index edf81a97ad..6412efd8a2 100644
--- a/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
+++ b/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
@@ -83,11 +83,11 @@ abstract class ClassfileParser {
*/
this.in = new AbstractFileReader(file)
if (root.isModule) {
- this.clazz = root.linkedClassOfModule
+ this.clazz = root.companionClass
this.staticModule = root
} else {
this.clazz = root
- this.staticModule = root.linkedModuleOfClass
+ this.staticModule = root.companionModule
}
this.isScala = false
this.hasMeta = false
@@ -842,7 +842,7 @@ abstract class ClassfileParser {
case ENUM_TAG =>
val t = pool.getType(index)
val n = pool.getName(in.nextChar)
- val s = t.typeSymbol.linkedModuleOfClass.info.decls.lookup(n)
+ val s = t.typeSymbol.companionModule.info.decls.lookup(n)
assert(s != NoSymbol, t)
Some(LiteralAnnotArg(Constant(s)))
case ARRAY_TAG =>
@@ -1041,7 +1041,7 @@ abstract class ClassfileParser {
def getMember(sym: Symbol, name: Name): Symbol =
if (static)
if (sym == clazz) staticDefs.lookup(name)
- else sym.linkedModuleOfClass.info.member(name)
+ else sym.companionModule.info.member(name)
else
if (sym == clazz) instanceDefs.lookup(name)
else sym.info.member(name)
@@ -1059,13 +1059,13 @@ abstract class ClassfileParser {
atPhase(currentRun.typerPhase)(getMember(sym, innerName.toTypeName))
else
getMember(sym, innerName.toTypeName)
- assert(s ne NoSymbol, sym + "." + innerName + " linkedModule: " + sym.linkedModuleOfClass + sym.linkedModuleOfClass.info.members)
+ assert(s ne NoSymbol, sym + "." + innerName + " linkedModule: " + sym.companionModule + sym.companionModule.info.members)
s
case None =>
val cls = classNameToSymbol(externalName)
cls
- //if (static) cls.linkedClassOfModule else cls
+ //if (static) cls.companionClass else cls
}
}