aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Denotations.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-01-17 10:23:51 +0100
committerMartin Odersky <odersky@gmail.com>2013-01-17 10:23:51 +0100
commit4ad6538f7d67a42747d578feaaee633c390c4cbc (patch)
treec4ca95857fe1d6fb0904f4b986deba2f5ba9def2 /src/dotty/tools/dotc/core/Denotations.scala
parentb43de54be5c4d91762d8dc6a4ce7b612935639f9 (diff)
downloaddotty-4ad6538f7d67a42747d578feaaee633c390c4cbc.tar.gz
dotty-4ad6538f7d67a42747d578feaaee633c390c4cbc.tar.bz2
dotty-4ad6538f7d67a42747d578feaaee633c390c4cbc.zip
Renamed "Reference" to "Referenced".
Diffstat (limited to 'src/dotty/tools/dotc/core/Denotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/Denotations.scala16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/dotty/tools/dotc/core/Denotations.scala b/src/dotty/tools/dotc/core/Denotations.scala
index 8aae7d644..383a46ccd 100644
--- a/src/dotty/tools/dotc/core/Denotations.scala
+++ b/src/dotty/tools/dotc/core/Denotations.scala
@@ -1,7 +1,7 @@
package dotty.tools.dotc
package core
-import Periods._, Contexts._, Symbols._, References._, Names._
+import Periods._, Contexts._, Symbols._, Referenceds._, Names._
import Types._, Flags._, Decorators._, Transformers._
import Scopes.Scope
import collection.mutable
@@ -9,7 +9,7 @@ import collection.immutable.BitSet
object Denotations {
- abstract class Denotation extends SymRef {
+ abstract class Denotation extends SymRefd {
def symbol: Symbol = ???
@@ -54,7 +54,7 @@ object Denotations {
def withType(tp: Type): Denotation = ???
- override protected def copy(s: Symbol, i: Type): SymRef = new UniqueSymRef(s, i, validFor)
+ override protected def copy(s: Symbol, i: Type): SymRefd = new UniqueSymRefd(s, i, validFor)
}
object NameFilter {
@@ -87,9 +87,9 @@ object Denotations {
def typeParams: List[TypeSymbol] = ???
- private var memberCacheVar: LRU8Cache[Name, RefSet] = null
+ private var memberCacheVar: LRU8Cache[Name, ReferencedSet] = null
- private def memberCache: LRU8Cache[Name, RefSet] = {
+ private def memberCache: LRU8Cache[Name, ReferencedSet] = {
if (memberCacheVar == null) memberCacheVar = new LRU8Cache
memberCacheVar
}
@@ -219,8 +219,8 @@ object Denotations {
if (fp != null) fp else computeDefinedFingerPrint
}
- final def memberRefsNamed(name: Name)(implicit ctx: Context): RefSet = {
- var refs: RefSet = memberCache lookup name
+ final def memberRefsNamed(name: Name)(implicit ctx: Context): ReferencedSet = {
+ var refs: ReferencedSet = memberCache lookup name
if (refs == null) {
if (containsName(definedFingerPrint, name)) {
val ownRefs = decls.refsNamed(name)
@@ -239,7 +239,7 @@ object Denotations {
}
}
} else {
- refs = NoRef
+ refs = NoRefd
}
memberCache enter (name, refs)
}