Skip to content

Commit 5547a0b

Browse files
Merge pull request #5728 from tuvior/missing-flags
Decompiler: final, duplicate type args, default initialiser
2 parents 86a383c + 7cce411 commit 5547a0b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

library/src/scala/tasty/reflect/Printers.scala

+5-1
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,6 @@ trait Printers
606606
printTypeTree(parent)
607607
case IsTerm(Term.TypeApply(fun, targs)) =>
608608
printParent(fun)
609-
inSquare(printTypeOrBoundsTrees(targs, ", "))
610609
case IsTerm(Term.Apply(fun, args)) =>
611610
printParent(fun)
612611
inParens(printTrees(args, ", "))
@@ -690,6 +689,7 @@ trait Printers
690689
val flags = vdef.symbol.flags
691690
if (flags.is(Flags.Implicit)) this += highlightKeyword("implicit ", color)
692691
if (flags.is(Flags.Override)) this += highlightKeyword("override ", color)
692+
if (flags.is(Flags.Final) && !flags.is(Flags.Object)) this += highlightKeyword("final ", color)
693693

694694
printProtectedOrPrivate(vdef)
695695

@@ -739,6 +739,7 @@ trait Printers
739739
if (flags.is(Flags.Implicit)) this += highlightKeyword("implicit ", color)
740740
if (flags.is(Flags.Inline)) this += highlightKeyword("inline ", color)
741741
if (flags.is(Flags.Override)) this += highlightKeyword("override ", color)
742+
if (flags.is(Flags.Final) && !flags.is(Flags.Object)) this += highlightKeyword("final ", color)
742743

743744
printProtectedOrPrivate(ddef)
744745

@@ -759,6 +760,9 @@ trait Printers
759760
}
760761
this
761762

763+
case Term.Ident("_") =>
764+
this += "_"
765+
762766
case IsTerm(tree @ Term.Ident(_)) =>
763767
printType(tree.tpe)
764768

0 commit comments

Comments
 (0)