diff options
author | Martin Odersky <odersky@gmail.com> | 2013-03-20 17:39:32 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-03-20 17:39:32 +0100 |
commit | 5ac2104e688409e24785cfe62cdc7e8ef0bc6428 (patch) | |
tree | 0d48205fa5b50c25e240d77d4fb0e26c4b6c9b36 /src/dotty/tools/dotc/core/Showable.scala | |
parent | 53e0a8a9227820e47e33f1e0b1d91819aec917c4 (diff) | |
download | dotty-5ac2104e688409e24785cfe62cdc7e8ef0bc6428.tar.gz dotty-5ac2104e688409e24785cfe62cdc7e8ef0bc6428.tar.bz2 dotty-5ac2104e688409e24785cfe62cdc7e8ef0bc6428.zip |
Pretty-printing improvements.
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 |