@@ -132,7 +132,7 @@ object Denotations {
132
132
def isType : Boolean
133
133
134
134
/** Is this a reference to a term symbol? */
135
- final def isTerm : Boolean = ! isType
135
+ def isTerm : Boolean = ! isType
136
136
137
137
/** Is this denotation overloaded? */
138
138
def isOverloaded = isInstanceOf [MultiDenotation ]
@@ -253,7 +253,7 @@ object Denotations {
253
253
}
254
254
255
255
abstract class SingleDenotation extends Denotation with DenotationSet {
256
- final override def isType = info.isInstanceOf [TypeType ]
256
+ override def isType = info.isInstanceOf [TypeType ]
257
257
override def signature : Signature = {
258
258
def sig (tp : Type ): Signature = tp match {
259
259
case tp : PolyType =>
@@ -268,9 +268,9 @@ object Denotations {
268
268
}
269
269
270
270
def derivedSingleDenotation (s : Symbol , i : Type ): SingleDenotation =
271
- if ((s eq symbol) && (i eq info)) this else copy (s, i)
271
+ if ((s eq symbol) && (i eq info)) this else newLikeThis (s, i)
272
272
273
- protected def copy (s : Symbol , i : Type ): SingleDenotation = this
273
+ protected def newLikeThis (s : Symbol , i : Type ): SingleDenotation = this
274
274
275
275
def orElse (that : => SingleDenotation ) = if (this .exists) this else that
276
276
@@ -372,14 +372,14 @@ object Denotations {
372
372
val info : Type ,
373
373
initValidFor : Period ) extends SingleDenotation {
374
374
validFor = initValidFor
375
- override protected def copy (s : Symbol , i : Type ): SingleDenotation = new UniqueRefDenotation (s, i, validFor)
375
+ override protected def newLikeThis (s : Symbol , i : Type ): SingleDenotation = new UniqueRefDenotation (s, i, validFor)
376
376
}
377
377
378
378
class JointRefDenotation (val symbol : Symbol ,
379
379
val info : Type ,
380
380
initValidFor : Period ) extends SingleDenotation {
381
381
validFor = initValidFor
382
- override protected def copy (s : Symbol , i : Type ): SingleDenotation = new JointRefDenotation (s, i, validFor)
382
+ override protected def newLikeThis (s : Symbol , i : Type ): SingleDenotation = new JointRefDenotation (s, i, validFor)
383
383
}
384
384
385
385
class ErrorDenotation (implicit ctx : Context ) extends SingleDenotation {
0 commit comments