@@ -168,12 +168,12 @@ class ReifyQuotes extends MacroTransform {
168
168
* `scala.quoted.Unpickler.unpickleExpr` that matches `tpe` with
169
169
* core and splices as arguments.
170
170
*/
171
- override protected def quotation (body : Tree , quote : Tree )(implicit ctx : Context ): Tree = {
171
+ override protected def transformQuotation (body : Tree , quote : Tree )(implicit ctx : Context ): Tree = {
172
172
val isType = quote.symbol eq defn.QuotedType_apply
173
173
assert(! body.symbol.isSplice)
174
174
if (level > 0 ) {
175
175
val body1 = nested(isQuote = true ).transform(body)(quoteContext)
176
- super .quotation (body1, quote)
176
+ super .transformQuotation (body1, quote)
177
177
}
178
178
else body match {
179
179
case body : RefTree if isCaptured(body.symbol, level + 1 ) =>
@@ -230,7 +230,7 @@ class ReifyQuotes extends MacroTransform {
230
230
* and make a hole from these parts. Otherwise issue an error, unless we
231
231
* are in the body of an inline method.
232
232
*/
233
- protected def splice (splice : Select )(implicit ctx : Context ): Tree = {
233
+ protected def transformSplice (splice : Select )(implicit ctx : Context ): Tree = {
234
234
if (level > 1 ) {
235
235
val body1 = nested(isQuote = false ).transform(splice.qualifier)(spliceContext)
236
236
body1.select(splice.name)
@@ -357,15 +357,15 @@ class ReifyQuotes extends MacroTransform {
357
357
case TypeApply (Select (spliceTree @ Spliced (_), _), tp) if tree.symbol == defn.Any_asInstanceOf =>
358
358
// Splice term which should be in the form `x.unary_~.asInstanceOf[T]` where T is an artefact of
359
359
// typer to allow pickling/unpickling phase consistent types
360
- splice (spliceTree)
360
+ transformSplice (spliceTree)
361
361
362
362
case tree : TypeTree if tree.tpe.typeSymbol.isSplice =>
363
363
val splicedType = tree.tpe.stripTypeVar.asInstanceOf [TypeRef ].prefix.termSymbol
364
- splice (ref(splicedType).select(tpnme.UNARY_~ ).withSpan(tree.span))
364
+ transformSplice (ref(splicedType).select(tpnme.UNARY_~ ).withSpan(tree.span))
365
365
366
366
case tree : RefTree if isCaptured(tree.symbol, level) =>
367
367
val t = capturers(tree.symbol).apply(tree)
368
- splice (t.select(if (tree.isTerm) nme.UNARY_~ else tpnme.UNARY_~ ))
368
+ transformSplice (t.select(if (tree.isTerm) nme.UNARY_~ else tpnme.UNARY_~ ))
369
369
370
370
case tree : DefDef if tree.symbol.is(Macro ) && level == 0 =>
371
371
// Shrink size of the tree. The methods have already been inlined.
0 commit comments