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.
1 parent 7107085 commit 416aca9Copy full SHA for 416aca9
src/dotty/tools/dotc/printing/RefinedPrinter.scala
@@ -53,6 +53,10 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
53
nameString(if (sym is ExpandedTypeParam) name.asTypeName.unexpandedName else name)
54
}
55
56
+ override def fullNameString(sym: Symbol): String =
57
+ if (isOmittablePrefix(sym.maybeOwner)) nameString(sym)
58
+ else super.fullNameString(sym)
59
+
60
override protected def fullNameOwner(sym: Symbol) = {
61
val owner = super.fullNameOwner(sym)
62
if (owner is ModuleClass) owner.sourceModule else owner
0 commit comments