@@ -51,7 +51,7 @@ object PickledQuotes {
51
51
}
52
52
53
53
/** 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 = {
55
55
val unpickled = withMode(Mode .ReadPositions )(unpickle(pickled, isType = false ))
56
56
val Inlined (call, Nil , expnasion) = unpickled
57
57
val inlineCtx = inlineContext(call)
@@ -61,13 +61,13 @@ object PickledQuotes {
61
61
}
62
62
63
63
/** 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 = {
65
65
val unpickled = withMode(Mode .ReadPositions )(unpickle(pickled, isType = true ))
66
66
spliceTypes(unpickled, fillHole)
67
67
}
68
68
69
69
/** 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 = {
71
71
val evaluateHoles = new TreeMap {
72
72
override def transform (tree : tpd.Tree )(using Context ): tpd.Tree = tree match {
73
73
case Hole (isTerm, idx, args) =>
@@ -121,7 +121,7 @@ object PickledQuotes {
121
121
}
122
122
123
123
/** 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 = {
125
125
tree match
126
126
case Block (stat :: rest, expr1) if stat.symbol.hasAnnotation(defn.InternalQuoted_QuoteTypeTagAnnot ) =>
127
127
val typeSpliceMap = (stat :: rest).iterator.map {
0 commit comments