Skip to content

Commit fdf17d0

Browse files
committed
Use cpyBetweenPhases as the copier for TreeTransformers
TreeTransform used cpyBetweenPhases, but TreeTransformer did not. This does not seem sensical. Most likely this was overlooked. TreeTransform/TreeTransformer is too similar, one gets confused easily what is what.
1 parent 3a0184c commit fdf17d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/src/dotty/tools/dotc/transform/TreeTransform.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,8 @@ object TreeTransforms {
471471
myGroupEndId
472472
}
473473

474+
val cpy: TypedTreeCopier = cpyBetweenPhases
475+
474476
override def run(implicit ctx: Context): Unit = {
475477
val curTree = ctx.compilationUnit.tpdTree
476478
val newTree = macroTransform(curTree)

0 commit comments

Comments
 (0)