@@ -608,7 +608,7 @@ class TreeUnpickler(reader: TastyReader,
608
608
* boundary symbol.
609
609
*/
610
610
def readModifiers [WithinType , AnnotType ]
611
- (end : Addr , readAnnot : Context => Symbol => AnnotType , readWithin : Context => WithinType , defaultWithin : WithinType )
611
+ (end : Addr , readAnnot : Context ? => Symbol => AnnotType , readWithin : Context ? => WithinType , defaultWithin : WithinType )
612
612
(using Context ): (FlagSet , List [Symbol => AnnotType ], WithinType ) = {
613
613
var flags : FlagSet = EmptyFlags
614
614
var annotFns : List [Symbol => AnnotType ] = Nil
@@ -662,32 +662,28 @@ class TreeUnpickler(reader: TastyReader,
662
662
case OPEN => addFlag(Open )
663
663
case PRIVATEqualified =>
664
664
readByte()
665
- privateWithin = readWithin(ctx)
665
+ privateWithin = readWithin
666
666
case PROTECTEDqualified =>
667
667
addFlag(Protected )
668
- privateWithin = readWithin(ctx)
668
+ privateWithin = readWithin
669
669
case ANNOTATION =>
670
- annotFns = readAnnot(ctx) :: annotFns
670
+ annotFns = readAnnot :: annotFns
671
671
case tag =>
672
672
assert(false , s " illegal modifier tag $tag at $currentAddr, end = $end" )
673
673
}
674
674
}
675
675
(flags, annotFns.reverse, privateWithin)
676
676
}
677
677
678
- private val readTypedWithin : Context => Symbol =
679
- implicit ctx => readType().typeSymbol
678
+ private val readTypedWithin : Context ?=> Symbol = readType().typeSymbol
680
679
681
- private val readTypedAnnot : Context => Symbol => Annotation = {
682
- implicit ctx =>
683
- readByte()
684
- val end = readEnd()
685
- val tp = readType()
686
- val lazyAnnotTree = readLaterWithOwner(end, rdr => implicit ctx => rdr.readTerm())
687
-
688
- owner =>
689
- Annotation .deferredSymAndTree(tp.typeSymbol)(lazyAnnotTree(owner).complete)
690
- }
680
+ private val readTypedAnnot : Context ?=> Symbol => Annotation =
681
+ readByte()
682
+ val end = readEnd()
683
+ val tp = readType()
684
+ val lazyAnnotTree = readLaterWithOwner(end, rdr => implicit ctx => rdr.readTerm())
685
+ owner =>
686
+ Annotation .deferredSymAndTree(tp.typeSymbol)(lazyAnnotTree(owner).complete)
691
687
692
688
/** Create symbols for the definitions in the statement sequence between
693
689
* current address and `end`.
0 commit comments