diff options
author | Martin Odersky <odersky@gmail.com> | 2013-05-14 12:22:35 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-05-14 12:22:35 +0200 |
commit | fec318dedaa10bf7ffaebd7aaf4a99e05ac0312a (patch) | |
tree | 8d5f9560806325c922eceb847f5c13b096aa7013 /src/dotty/tools/dotc/printing/Showable.scala | |
parent | b866c49bde62ee8ee52358dee746db64741b5891 (diff) | |
download | dotty-fec318dedaa10bf7ffaebd7aaf4a99e05ac0312a.tar.gz dotty-fec318dedaa10bf7ffaebd7aaf4a99e05ac0312a.tar.bz2 dotty-fec318dedaa10bf7ffaebd7aaf4a99e05ac0312a.zip |
Refactored Printers, Showable and Text into new package dotc.printing.
Diffstat (limited to 'src/dotty/tools/dotc/printing/Showable.scala')
-rw-r--r-- | src/dotty/tools/dotc/printing/Showable.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/printing/Showable.scala b/src/dotty/tools/dotc/printing/Showable.scala new file mode 100644 index 000000000..73d320019 --- /dev/null +++ b/src/dotty/tools/dotc/printing/Showable.scala @@ -0,0 +1,14 @@ +package dotty.tools.dotc +package printing + +import core._ + +import Contexts._, Texts._, Decorators._ + +trait Showable { + + def toText(implicit ctx: Context): Text + + def show(implicit ctx: Context): String = toText.show + +}
\ No newline at end of file |