@@ -1135,11 +1135,11 @@ object Types {
1135
1135
def select (name : Name )(implicit ctx : Context ): Type =
1136
1136
NamedType (this , name, member(name)).reduceProjection
1137
1137
1138
- /** The type <this . name> , reduced if possible, with given denotation if unreduced */
1139
- def select (name : Name , denot : Denotation )(implicit ctx : Context ): Type = // ### drop name
1138
+ /** The type <this . name> with given denotation, reduced if possible. */
1139
+ def select (name : Name , denot : Denotation )(implicit ctx : Context ): Type =
1140
1140
NamedType (this , name, denot).reduceProjection
1141
1141
1142
- /** The type <this . name> with either ` sym` or its signed name as designator , reduced if possible */
1142
+ /** The type <this . sym> , reduced if possible */
1143
1143
def select (sym : Symbol )(implicit ctx : Context ): Type =
1144
1144
NamedType (this , sym).reduceProjection
1145
1145
@@ -1609,9 +1609,6 @@ object Types {
1609
1609
else symbol
1610
1610
}
1611
1611
1612
- private def lastKnownSymbol = // ### always combine with initial?
1613
- if (lastDenotation != null ) lastDenotation.symbol else NoSymbol
1614
-
1615
1612
def info (implicit ctx : Context ): Type = denot.info
1616
1613
1617
1614
/** The denotation currently denoted by this type */
@@ -1722,7 +1719,7 @@ object Types {
1722
1719
else d
1723
1720
}
1724
1721
1725
- private [dotc] final def setDenot (denot : Denotation )(implicit ctx : Context ): Unit = { // ### make private? (also others)
1722
+ private def setDenot (denot : Denotation )(implicit ctx : Context ): Unit = { // ### make private? (also others)
1726
1723
if (ctx.isAfterTyper)
1727
1724
assert(! denot.isOverloaded, this )
1728
1725
if (Config .checkNoDoubleBindings)
@@ -1901,11 +1898,6 @@ object Types {
1901
1898
case _ => withPrefix(prefix)
1902
1899
}
1903
1900
1904
- private [dotc] final def invalidateDenot ()(implicit ctx : Context ): Unit = {
1905
- lastDenotation = null
1906
- lastSymbol = null
1907
- }
1908
-
1909
1901
private [dotc] final def withSym (sym : Symbol )(implicit ctx : Context ): ThisType =
1910
1902
if ((designator ne sym) && sym.exists) NamedType (prefix, sym).asInstanceOf [ThisType ]
1911
1903
else this
0 commit comments