summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2011-02-02 08:59:02 +0000
committerIulian Dragos <jaguarul@gmail.com>2011-02-02 08:59:02 +0000
commit235a7ea171885ed754d07dbda315348746d6bf81 (patch)
tree5cff1f1bde5c23b22cd417b333a803e6295e4cab
parent7aca20d8d31790569557c87406a74c0c7377de79 (diff)
downloadscala-235a7ea171885ed754d07dbda315348746d6bf81.tar.gz
scala-235a7ea171885ed754d07dbda315348746d6bf81.tar.bz2
scala-235a7ea171885ed754d07dbda315348746d6bf81.zip
What's in a name? 2 redundant fields, it seems.
-rw-r--r--src/compiler/scala/tools/nsc/symtab/Names.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/Names.scala b/src/compiler/scala/tools/nsc/symtab/Names.scala
index 8c512d359f..6772b8d5e2 100644
--- a/src/compiler/scala/tools/nsc/symtab/Names.scala
+++ b/src/compiler/scala/tools/nsc/symtab/Names.scala
@@ -148,7 +148,7 @@ trait Names extends reflect.generic.Names {
// Classes ----------------------------------------------------------------------
/** The name class. */
- sealed abstract class Name(index: Int, len: Int) extends Function1[Int, Char] {
+ sealed abstract class Name(protected val index: Int, protected val len: Int) extends Function1[Int, Char] {
/** Index into name table */
def start: Int = index
@@ -403,7 +403,7 @@ trait Names extends reflect.generic.Names {
def isOperatorName: Boolean = decode != toString
}
- final class TermName(index: Int, len: Int, hash: Int) extends Name(index, len) {
+ final class TermName(_index: Int, _len: Int, hash: Int) extends Name(_index, _len) {
var next: TermName = termHashtable(hash)
termHashtable(hash) = this
def isTermName: Boolean = true
@@ -425,7 +425,7 @@ trait Names extends reflect.generic.Names {
newTermName(chrs, start + from, to - from)
}
- final class TypeName(index: Int, len: Int, hash: Int) extends Name(index, len) {
+ final class TypeName(_index: Int, _len: Int, hash: Int) extends Name(_index, _len) {
var next: TypeName = typeHashtable(hash)
typeHashtable(hash) = this
def isTermName: Boolean = false