@@ -51,7 +51,7 @@ object PickledQuotes {
5151 }
5252
5353 /** Unpickle the tree contained in the TastyExpr */
54- def unpickleTerm (pickled : List [String ], fillHole : Seq [Seq [ Any ] => Any ] )(using Context ): Tree = {
54+ def unpickleTerm (pickled : List [String ], fillHole : Int => Seq [Any ] => Any )(using Context ): Tree = {
5555 val unpickled = withMode(Mode .ReadPositions )(unpickle(pickled, isType = false ))
5656 val Inlined (call, Nil , expnasion) = unpickled
5757 val inlineCtx = inlineContext(call)
@@ -61,13 +61,13 @@ object PickledQuotes {
6161 }
6262
6363 /** Unpickle the tree contained in the TastyType */
64- def unpickleTypeTree (pickled : List [String ], fillHole : Seq [Seq [ Any ] => Any ] )(using Context ): Tree = {
64+ def unpickleTypeTree (pickled : List [String ], fillHole : Int => Seq [Any ] => Any )(using Context ): Tree = {
6565 val unpickled = withMode(Mode .ReadPositions )(unpickle(pickled, isType = true ))
6666 spliceTypes(unpickled, fillHole)
6767 }
6868
6969 /** Replace all term holes with the spliced terms */
70- private def spliceTerms (tree : Tree , fillHole : Seq [Seq [ Any ] => Any ] )(using Context ): Tree = {
70+ private def spliceTerms (tree : Tree , fillHole : Int => Seq [Any ] => Any )(using Context ): Tree = {
7171 val evaluateHoles = new TreeMap {
7272 override def transform (tree : tpd.Tree )(using Context ): tpd.Tree = tree match {
7373 case Hole (isTerm, idx, args) =>
@@ -121,7 +121,7 @@ object PickledQuotes {
121121 }
122122
123123 /** Replace all type holes generated with the spliced types */
124- private def spliceTypes (tree : Tree , fillHole : Seq [Seq [ Any ] => Any ] )(using Context ): Tree = {
124+ private def spliceTypes (tree : Tree , fillHole : Int => Seq [Any ] => Any )(using Context ): Tree = {
125125 tree match
126126 case Block (stat :: rest, expr1) if stat.symbol.hasAnnotation(defn.InternalQuoted_QuoteTypeTagAnnot ) =>
127127 val typeSpliceMap = (stat :: rest).iterator.map {
0 commit comments