File tree 1 file changed +4
-3
lines changed
compiler/src/dotty/tools/dotc/printing
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -523,9 +523,10 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
523
523
case SeqLiteral (elems, elemtpt) =>
524
524
" [" ~ toTextGlobal(elems, " ," ) ~ " : " ~ toText(elemtpt) ~ " ]"
525
525
case tree @ Inlined (call, bindings, body) =>
526
- ((" /* inlined from " ~ (if (call.isEmpty) " outside" else toText(call)) ~ " */ " ) `provided`
527
- ! homogenizedView && ctx.settings.XprintInline .value) ~
528
- (if bindings.isEmpty then toText(body) else blockText(bindings :+ body))
526
+ val bodyText = if bindings.isEmpty then toText(body) else blockText(bindings :+ body)
527
+ if homogenizedView || ! ctx.settings.XprintInline .value then bodyText
528
+ else if call.isEmpty then stringText(" {{" ) ~ stringText(" /* inlined from outside */" ) ~ bodyText ~ stringText(" }}" )
529
+ else keywordText(" {{" ) ~ keywordText(" /* inlined from " ) ~ toText(call) ~ keywordText(" */" ) ~ bodyText ~ keywordText(" }}" )
529
530
case tpt : untpd.DerivedTypeTree =>
530
531
" <derived typetree watching " ~ tpt.watched.showSummary() ~ " >"
531
532
case TypeTree () =>
You can’t perform that action at this time.
0 commit comments