Skip to content
This repository was archived by the owner on Sep 1, 2020. It is now read-only.

Commit b48aa90

Browse files
committed
Putting back things sbt noticed were gone.
1 parent 3e038d8 commit b48aa90

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package scala.tools.nsc
2+
3+
import interpreter._
4+
import java.io._
5+
6+
/** A compatibility stub.
7+
*/
8+
@deprecated("Use a class in the scala.tools.nsc.interpreter package.", "2.9.0")
9+
class Interpreter(settings: Settings, out: PrintWriter) extends IMain(settings, out) {
10+
def this(settings: Settings) = this(settings, new NewLinePrintWriter(new ConsoleWriter, true))
11+
def this() = this(new Settings())
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package scala.tools.nsc
2+
3+
import interpreter._
4+
import java.io._
5+
6+
/** A compatibility stub.
7+
*/
8+
@deprecated("Use a class in the scala.tools.nsc.interpreter package.", "2.9.0")
9+
class InterpreterLoop(in0: Option[BufferedReader], out: PrintWriter) extends ILoop(in0, out) {
10+
def this(in0: BufferedReader, out: PrintWriter) = this(Some(in0), out)
11+
def this() = this(None, new PrintWriter(scala.Console.out))
12+
}

src/compiler/scala/tools/nsc/interpreter/ILoop.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ class ILoop(in0: Option[BufferedReader], protected val out: JPrintWriter)
4949
var settings: Settings = _
5050
var intp: IMain = _
5151

52+
@deprecated("Use `intp` instead.", "2.9.0") def interpreter = intp
53+
@deprecated("Use `intp` instead.", "2.9.0") def interpreter_= (i: Interpreter): Unit = intp = i
54+
5255
/** Having inherited the difficult "var-ness" of the repl instance,
5356
* I'm trying to work around it by moving operations into a class from
5457
* which it will appear a stable prefix.
@@ -869,6 +872,9 @@ class ILoop(in0: Option[BufferedReader], protected val out: JPrintWriter)
869872
case help => echoNoNL(help) ; true
870873
}
871874
}
875+
876+
@deprecated("Use `process` instead", "2.9.0")
877+
def main(settings: Settings): Unit = process(settings)
872878
}
873879

874880
object ILoop {

0 commit comments

Comments
 (0)