File tree 2 files changed +3
-0
lines changed
compiler/src/dotty/tools/dotc/printing
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -438,6 +438,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
438
438
(kindString(sym) ~~ {
439
439
if (sym.isAnonymousClass) toTextParents(sym.info.parents) ~~ " {...}"
440
440
else if (hasMeaninglessName(sym) && ! printDebug) simpleNameString(sym.owner) + idString(sym)
441
+ else if sym.is(Package ) then fullNameString(sym)
441
442
else nameString(sym)
442
443
}).close
443
444
Original file line number Diff line number Diff line change @@ -900,6 +900,8 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
900
900
def name =
901
901
if (printDebug)
902
902
nameString(sym)
903
+ else if sym.is(Package ) then
904
+ fullNameString(sym)
903
905
else if (sym.is(ModuleClass ) && sym.isPackageObject && sym.name.stripModuleClassSuffix == tpnme.PACKAGE )
904
906
nameString(sym.owner.name)
905
907
else if (sym.is(ModuleClass ))
You can’t perform that action at this time.
0 commit comments