@@ -705,7 +705,7 @@ class TreeUnpickler(reader: TastyReader,
705
705
case IMPORT =>
706
706
skipTree()
707
707
case PACKAGE =>
708
- processPackage { (pid, end) => implicit ctx => indexStats(end) }
708
+ processPackage { (pid, end) => indexStats(end) }
709
709
case _ =>
710
710
skipTree()
711
711
initsFlags = EmptyFlags
@@ -719,13 +719,13 @@ class TreeUnpickler(reader: TastyReader,
719
719
* - an end address,
720
720
* - a context which has the processed package as owner
721
721
*/
722
- def processPackage [T ](op : (RefTree , Addr ) => Context => T )(using Context ): T = {
722
+ def processPackage [T ](op : (RefTree , Addr ) => Context ? => T )(using Context ): T = {
723
723
val sctx = sourceChangeContext()
724
724
if (sctx `ne` ctx) return processPackage(op)(using sctx)
725
725
readByte()
726
726
val end = readEnd()
727
727
val pid = ref(readTermRef()).asInstanceOf [RefTree ]
728
- op(pid, end)(localContext(pid.symbol.moduleClass))
728
+ op(pid, end)(using localContext(pid.symbol.moduleClass))
729
729
}
730
730
731
731
/** Create symbols the longest consecutive sequence of parameters with given
@@ -963,8 +963,7 @@ class TreeUnpickler(reader: TastyReader,
963
963
readImport()
964
964
case PACKAGE =>
965
965
val start = currentAddr
966
- processPackage { (pid, end) => ctx =>
967
- given Context = ctx
966
+ processPackage { (pid, end) =>
968
967
setSpan(start, PackageDef (pid, readIndexedStats(exprOwner, end)))
969
968
}
970
969
case _ =>
0 commit comments