Skip to content

Commit ed3137f

Browse files
committed
Highlight inline argument in printed trees
1 parent 741128c commit ed3137f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/printing/RefinedPrinter.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,8 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
385385
case SeqLiteral(elems, elemtpt) =>
386386
"[" ~ toTextGlobal(elems, ",") ~ " : " ~ toText(elemtpt) ~ "]"
387387
case tree @ Inlined(call, bindings, body) =>
388-
(("/* inlined from " ~ toText(call) ~ " */ ") `provided`
389-
!call.isEmpty && !homogenizedView && !ctx.settings.YshowNoInline.value) ~
388+
((if (!call.isEmpty) "/* inlined from " ~ toText(call) ~ " */ " else "/* inline arg */ ": Text) `provided`
389+
!homogenizedView && !ctx.settings.YshowNoInline.value) ~
390390
blockText(bindings :+ body)
391391
case tpt: untpd.DerivedTypeTree =>
392392
"<derived typetree watching " ~ summarized(toText(tpt.watched)) ~ ">"

0 commit comments

Comments
 (0)