@@ -198,40 +198,6 @@ class TypeApplications(val self: Type) extends AnyVal {
198
198
}
199
199
}
200
200
201
- // Argh, we'll need in fact multiple substitutions.
202
- final def typeParamsAndPrefix (maybePrefix : Type )(implicit ctx : Context ): (List [TypeParamInfo ], Type ) = /* >|>*/ track(" typeParams" ) /* <|<*/ {
203
- try self match {
204
- case self : TypeRef =>
205
- val tsym = self.symbol
206
- if (tsym.isClass) (tsym.typeParams, self.prefix)
207
- else if (! tsym.exists) self.info.typeParamsAndPrefix(self.prefix)
208
- else tsym.infoOrCompleter match {
209
- case info : LazyType =>
210
- (info.completerTypeParams(tsym), self.prefix) // XXX
211
- case info => info.typeParamsAndPrefix(self.prefix)
212
- }
213
- case self : AppliedType =>
214
- if (self.tycon.typeSymbol.isClass)
215
- (Nil , maybePrefix)
216
- else self.superType.typeParamsAndPrefix(maybePrefix)
217
- case self : ClassInfo =>
218
- (self.cls.typeParams, self)
219
- case self : HKTypeLambda =>
220
- (self.typeParams, maybePrefix)
221
- case _ : SingletonType | _ : RefinedType | _ : RecType =>
222
- (Nil , maybePrefix)
223
- case self : WildcardType =>
224
- self.optBounds.typeParamsAndPrefix(maybePrefix)
225
- case self : TypeProxy =>
226
- self.superType.typeParamsAndPrefix(maybePrefix)
227
- case _ =>
228
- (Nil , maybePrefix)
229
- }
230
- catch {
231
- case ex : Throwable => handleRecursive(" type parameters and prefix of" , self.show, ex)
232
- }
233
- }
234
-
235
201
/** If `self` is a higher-kinded type, its type parameters, otherwise Nil */
236
202
final def hkTypeParams (implicit ctx : Context ): List [TypeParamInfo ] =
237
203
if (isLambdaSub) typeParams else Nil
0 commit comments