@@ -1129,11 +1129,11 @@ object Types {
1129
1129
def select (name : Name )(implicit ctx : Context ): Type =
1130
1130
NamedType (this , name, member(name)).reduceProjection
1131
1131
1132
- /** The type <this . name> , reduced if possible, with given denotation if unreduced */
1133
- def select (name : Name , denot : Denotation )(implicit ctx : Context ): Type = // ### drop name
1132
+ /** The type <this . name> with given denotation, reduced if possible. */
1133
+ def select (name : Name , denot : Denotation )(implicit ctx : Context ): Type =
1134
1134
NamedType (this , name, denot).reduceProjection
1135
1135
1136
- /** The type <this . name> with either ` sym` or its signed name as designator , reduced if possible */
1136
+ /** The type <this . sym> , reduced if possible */
1137
1137
def select (sym : Symbol )(implicit ctx : Context ): Type =
1138
1138
NamedType (this , sym).reduceProjection
1139
1139
@@ -1600,9 +1600,6 @@ object Types {
1600
1600
else symbol
1601
1601
}
1602
1602
1603
- private def lastKnownSymbol = // ### always combine with initial?
1604
- if (lastDenotation != null ) lastDenotation.symbol else NoSymbol
1605
-
1606
1603
def info (implicit ctx : Context ): Type = denot.info
1607
1604
1608
1605
/** The denotation currently denoted by this type */
@@ -1713,7 +1710,7 @@ object Types {
1713
1710
else d
1714
1711
}
1715
1712
1716
- private [dotc] final def setDenot (denot : Denotation )(implicit ctx : Context ): Unit = { // ### make private? (also others)
1713
+ private def setDenot (denot : Denotation )(implicit ctx : Context ): Unit = { // ### make private? (also others)
1717
1714
if (ctx.isAfterTyper)
1718
1715
assert(! denot.isOverloaded, this )
1719
1716
if (Config .checkNoDoubleBindings)
@@ -1892,11 +1889,6 @@ object Types {
1892
1889
case _ => withPrefix(prefix)
1893
1890
}
1894
1891
1895
- private [dotc] final def invalidateDenot ()(implicit ctx : Context ): Unit = {
1896
- lastDenotation = null
1897
- lastSymbol = null
1898
- }
1899
-
1900
1892
private [dotc] final def withSym (sym : Symbol )(implicit ctx : Context ): ThisType =
1901
1893
if ((designator ne sym) && sym.exists) NamedType (prefix, sym).asInstanceOf [ThisType ]
1902
1894
else this
0 commit comments