diff options
Diffstat (limited to 'src/dotty/tools/dotc/core/Showable.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Showable.scala | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/dotty/tools/dotc/core/Showable.scala b/src/dotty/tools/dotc/core/Showable.scala index 770b3c818..54a25506a 100644 --- a/src/dotty/tools/dotc/core/Showable.scala +++ b/src/dotty/tools/dotc/core/Showable.scala @@ -1,9 +1,12 @@ -package dotty.tools.dotc.core +package dotty.tools.dotc +package core -import Contexts._ +import Contexts._, util.Texts._, Decorators._ trait Showable { - def show(implicit ctx: Context): String + def toText(implicit ctx: Context): Text + + def show(implicit ctx: Context): String = toText.show }
\ No newline at end of file |