From 4ad6538f7d67a42747d578feaaee633c390c4cbc Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 17 Jan 2013 10:23:51 +0100 Subject: Renamed "Reference" to "Referenced". --- src/dotty/tools/dotc/core/Denotations.scala | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/dotty/tools/dotc/core/Denotations.scala') 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) } -- cgit v1.2.3