@@ -228,7 +228,7 @@ object ProtoTypes {
228
228
229
229
trait ApplyingProto extends ProtoType // common trait of ViewProto and FunProto
230
230
trait FunOrPolyProto extends ProtoType { // common trait of PolyProto and FunProto
231
- def isGivenApply : Boolean = false
231
+ def isUsingApply : Boolean = false
232
232
}
233
233
234
234
class FunProtoState {
@@ -251,7 +251,7 @@ object ProtoTypes {
251
251
* [](args): resultType
252
252
*/
253
253
case class FunProto (args : List [untpd.Tree ], resType : Type )(typer : Typer ,
254
- override val isGivenApply : Boolean , state : FunProtoState = new FunProtoState )(implicit val ctx : Context )
254
+ override val isUsingApply : Boolean , state : FunProtoState = new FunProtoState )(implicit val ctx : Context )
255
255
extends UncachedGroundType with ApplyingProto with FunOrPolyProto {
256
256
override def resultType (implicit ctx : Context ): Type = resType
257
257
@@ -265,7 +265,7 @@ object ProtoTypes {
265
265
266
266
def derivedFunProto (args : List [untpd.Tree ] = this .args, resultType : Type , typer : Typer = this .typer): FunProto =
267
267
if ((args eq this .args) && (resultType eq this .resultType) && (typer eq this .typer)) this
268
- else new FunProto (args, resultType)(typer, isGivenApply )
268
+ else new FunProto (args, resultType)(typer, isUsingApply )
269
269
270
270
/** @return True if all arguments have types.
271
271
*/
@@ -355,7 +355,7 @@ object ProtoTypes {
355
355
case pt : FunProto =>
356
356
pt
357
357
case _ =>
358
- state.tupled = new FunProto (untpd.Tuple (args) :: Nil , resultType)(typer, isGivenApply )
358
+ state.tupled = new FunProto (untpd.Tuple (args) :: Nil , resultType)(typer, isUsingApply )
359
359
tupled
360
360
}
361
361
@@ -390,14 +390,14 @@ object ProtoTypes {
390
390
391
391
override def withContext (newCtx : Context ): ProtoType =
392
392
if (newCtx `eq` ctx) this
393
- else new FunProto (args, resType)(typer, isGivenApply , state)(newCtx)
393
+ else new FunProto (args, resType)(typer, isUsingApply , state)(newCtx)
394
394
}
395
395
396
396
/** A prototype for expressions that appear in function position
397
397
*
398
398
* [](args): resultType, where args are known to be typed
399
399
*/
400
- class FunProtoTyped (args : List [tpd.Tree ], resultType : Type )(typer : Typer , isGivenApply : Boolean )(implicit ctx : Context ) extends FunProto (args, resultType)(typer, isGivenApply )(ctx) {
400
+ class FunProtoTyped (args : List [tpd.Tree ], resultType : Type )(typer : Typer , isUsingApply : Boolean )(implicit ctx : Context ) extends FunProto (args, resultType)(typer, isUsingApply )(ctx) {
401
401
override def typedArgs (norm : (untpd.Tree , Int ) => untpd.Tree )(implicit ctx : Context ): List [tpd.Tree ] = args
402
402
override def withContext (ctx : Context ): FunProtoTyped = this
403
403
}
@@ -444,7 +444,7 @@ object ProtoTypes {
444
444
}
445
445
446
446
class UnapplyFunProto (argType : Type , typer : Typer )(implicit ctx : Context ) extends FunProto (
447
- untpd.TypedSplice (dummyTreeOfType(argType)(ctx.source))(ctx) :: Nil , WildcardType )(typer, isGivenApply = false )
447
+ untpd.TypedSplice (dummyTreeOfType(argType)(ctx.source))(ctx) :: Nil , WildcardType )(typer, isUsingApply = false )
448
448
449
449
/** A prototype for expressions [] that are type-parameterized:
450
450
*
0 commit comments