aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/printing/Printer.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2017-01-30 17:51:53 +1100
committerMartin Odersky <odersky@gmail.com>2017-02-08 19:35:58 +1100
commit269be04ce9f42d57dbc9ceb24afbae1b615e64e4 (patch)
tree6050fe8fabcbd60dbbaa8ddbfbcbc8fed67ac521 /compiler/src/dotty/tools/dotc/printing/Printer.scala
parent4086195fe188804ce5a052d7b3c2aee099c425d1 (diff)
downloaddotty-269be04ce9f42d57dbc9ceb24afbae1b615e64e4.tar.gz
dotty-269be04ce9f42d57dbc9ceb24afbae1b615e64e4.tar.bz2
dotty-269be04ce9f42d57dbc9ceb24afbae1b615e64e4.zip
Implement SearchResult.show
Diffstat (limited to 'compiler/src/dotty/tools/dotc/printing/Printer.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/printing/Printer.scala6
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/printing/Printer.scala b/compiler/src/dotty/tools/dotc/printing/Printer.scala
index 14b63012e..506773a4b 100644
--- a/compiler/src/dotty/tools/dotc/printing/Printer.scala
+++ b/compiler/src/dotty/tools/dotc/printing/Printer.scala
@@ -5,6 +5,7 @@ import core._
import Texts._, ast.Trees._
import Types.Type, Symbols.Symbol, Contexts.Context, Scopes.Scope, Constants.Constant,
Names.Name, Denotations._, Annotations.Annotation
+import typer.Implicits.SearchResult
/** The base class of all printers
*/
@@ -94,7 +95,10 @@ abstract class Printer {
/** Textual representation of tree */
def toText[T >: Untyped](tree: Tree[T]): Text
- /** Perform string or text-producing operation `op` so that only a
+ /** Textual representation of implicit search result */
+ def toText(result: SearchResult): Text
+
+ /** Perform string or text-producing operation `op` so that only a
* summarized text with given recursion depth is shown
*/
def summarized[T](depth: Int)(op: => T): T