We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
mapConserve
UntypedTreeMap
1 parent 8377c0d commit 4aba4f7Copy full SHA for 4aba4f7
compiler/src/dotty/tools/dotc/ast/untpd.scala
@@ -477,7 +477,7 @@ object untpd extends Trees.Instance[Untyped] with UntypedTreeInfo {
477
case SymbolLit(str) =>
478
cpy.SymbolLit(tree)(str)
479
case InterpolatedString(id, segments) =>
480
- cpy.InterpolatedString(tree)(id, segments.map(transform(_)))
+ cpy.InterpolatedString(tree)(id, segments.mapConserve(transform))
481
case Function(args, body) =>
482
cpy.Function(tree)(transform(args), transform(body))
483
case InfixOp(left, op, right) =>
0 commit comments