aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Printers.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc/core/Printers.scala')
-rw-r--r--src/dotty/tools/dotc/core/Printers.scala6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/Printers.scala b/src/dotty/tools/dotc/core/Printers.scala
index 7bc835f36..4c97a5bfa 100644
--- a/src/dotty/tools/dotc/core/Printers.scala
+++ b/src/dotty/tools/dotc/core/Printers.scala
@@ -30,7 +30,7 @@ object Printers {
abstract class Printer {
- /** Show name, same as name.toString */
+ /** Show name, same as name.toString + kind suffix if plain printer */
def show(name: Name): String
/** Show name with "type" or "term" prefix */
@@ -119,7 +119,7 @@ object Printers {
|| (sym.name == nme.PACKAGE) // package
)
- def show(name: Name): String = name.toString
+ def show(name: Name): String = name.showDetailed
def showDetailed(name: Name): String =
(if (name.isTypeName) "type " else "term ") + name
@@ -377,6 +377,8 @@ object Printers {
class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
override protected def recursionLimitExceeeded() = {}
+ override def show(name: Name): String = name.toString
+
override protected def showSimpleName(sym: Symbol) = sym.originalName.decode
override def showPrefix(tp: Type): String = controlled {