@@ -1957,7 +1957,7 @@ object Types {
19571957 override def isOverloaded (implicit ctx : Context ) = denot.isOverloaded
19581958
19591959 private def rewrap (sd : SingleDenotation )(implicit ctx : Context ) =
1960- TermRef .withSigAndDenot (prefix, name, sd)
1960+ TermRef (prefix, name, sd)
19611961
19621962 def alternatives (implicit ctx : Context ): List [TermRef ] =
19631963 denot.alternatives map rewrap
@@ -2061,23 +2061,12 @@ object Types {
20612061 * signature, if denotation is not yet completed.
20622062 */
20632063 def apply (prefix : Type , name : TermName , denot : Denotation )(implicit ctx : Context ): TermRef = {
2064- if ((prefix eq NoPrefix ) || denot.symbol.isReferencedSymbolically)
2065- apply(prefix, denot.symbol.asTerm)
2064+ if ((prefix eq NoPrefix ) || denot.symbol.isReferencedSymbolically) apply(prefix, denot.symbol.asTerm)
20662065 else denot match {
2067- case denot : SymDenotation if denot.isCompleted =>
2068- apply(prefix, name.withSig(denot.signature))
2069- case _ =>
2070- apply(prefix, name)
2066+ case denot : SingleDenotation => apply(prefix, name.withSig(denot.signature))
2067+ case _ => apply(prefix, name)
20712068 }
20722069 } withDenot denot
2073-
2074- /** Create a term ref with given prefix, name, signature, and initial denotation */
2075- def withSigAndDenot (prefix : Type , name : TermName , denot : Denotation )(implicit ctx : Context ): TermRef = {
2076- if ((prefix eq NoPrefix ) || denot.symbol.isReferencedSymbolically)
2077- apply(prefix, denot.symbol.asTerm)
2078- else
2079- apply(prefix, name.withSig(denot.signature))
2080- } withDenot denot
20812070 }
20822071
20832072 object TypeRef {
0 commit comments