aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/repl/Interpreter.scala
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2016-04-27 13:38:38 +0200
committerFelix Mulder <felix.mulder@gmail.com>2016-04-28 11:00:39 +0200
commit57670a38ca55cc04c9d765bdf04584cad5581d41 (patch)
tree0ebfbf8c55749bd27cb97f1f536647c6f63b015a /src/dotty/tools/dotc/repl/Interpreter.scala
parentd04984596c6abfa27b217b12a42caca26f0c269f (diff)
downloaddotty-57670a38ca55cc04c9d765bdf04584cad5581d41.tar.gz
dotty-57670a38ca55cc04c9d765bdf04584cad5581d41.tar.bz2
dotty-57670a38ca55cc04c9d765bdf04584cad5581d41.zip
Stop interpreter from interpreting twice on enter
Diffstat (limited to 'src/dotty/tools/dotc/repl/Interpreter.scala')
-rw-r--r--src/dotty/tools/dotc/repl/Interpreter.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/repl/Interpreter.scala b/src/dotty/tools/dotc/repl/Interpreter.scala
index ea587a097..590baae0d 100644
--- a/src/dotty/tools/dotc/repl/Interpreter.scala
+++ b/src/dotty/tools/dotc/repl/Interpreter.scala
@@ -33,4 +33,10 @@ trait Interpreter {
/** Suppress output during evaluation of `operation`. */
def beQuietDuring[T](operation: => T): T
+
+ /** Suppresses output and saves it for `lastOutput` to collect */
+ def delayOutputDuring[T](operation: => T): T
+
+ /** Gets the last output not printed immediately */
+ def lastOutput(): Option[String]
}