diff options
author | Martin Odersky <odersky@gmail.com> | 2014-07-17 15:44:10 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-08-03 17:28:33 +0200 |
commit | 9d90361eeb76f3b090a96033e20ed1a272c3493c (patch) | |
tree | 1bc0b0e1cf37102e28fa72361e71a7a4e86ae83b /src/dotty/tools/dotc/printing/Printer.scala | |
parent | 2cb905004b28707b4c127e5a1848084109ddb3db (diff) | |
download | dotty-9d90361eeb76f3b090a96033e20ed1a272c3493c.tar.gz dotty-9d90361eeb76f3b090a96033e20ed1a272c3493c.tar.bz2 dotty-9d90361eeb76f3b090a96033e20ed1a272c3493c.zip |
Add showDcl method for SingleDenotations
Diffstat (limited to 'src/dotty/tools/dotc/printing/Printer.scala')
-rw-r--r-- | src/dotty/tools/dotc/printing/Printer.scala | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/printing/Printer.scala b/src/dotty/tools/dotc/printing/Printer.scala index 65162a10f..360874522 100644 --- a/src/dotty/tools/dotc/printing/Printer.scala +++ b/src/dotty/tools/dotc/printing/Printer.scala @@ -4,7 +4,7 @@ package printing import core._ import Texts._, ast.Trees._ import Types.Type, Symbols.Symbol, Contexts.Context, Scopes.Scope, Constants.Constant, - Names.Name, Denotations.Denotation, Annotations.Annotation + Names.Name, Denotations._, Annotations.Annotation /** The base class of all printers */ @@ -59,6 +59,9 @@ abstract class Printer { /** Textual representation of symbol's declaration */ def dclText(sym: Symbol): Text + /** Textual representation of single denotation's declaration */ + def dclText(sd: SingleDenotation): Text + /** If symbol's owner is a printable class C, the text "in C", otherwise "" */ def locationText(sym: Symbol): Text |