summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-05-15 22:43:33 -0700
committerPaul Phillips <paulp@improving.org>2012-05-15 22:45:46 -0700
commitb48aa909cefc4811e208f491d22d664538d75bad (patch)
treee553cd3366948b00f3f5ab9dcd273342d4b913ad /src
parent3e038d801cd3177ed1230eb7729e11f8743db23a (diff)
downloadscala-b48aa909cefc4811e208f491d22d664538d75bad.tar.gz
scala-b48aa909cefc4811e208f491d22d664538d75bad.tar.bz2
scala-b48aa909cefc4811e208f491d22d664538d75bad.zip
Putting back things sbt noticed were gone.
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/Interpreter.scala12
-rw-r--r--src/compiler/scala/tools/nsc/InterpreterLoop.scala12
-rw-r--r--src/compiler/scala/tools/nsc/interpreter/ILoop.scala6
3 files changed, 30 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/Interpreter.scala b/src/compiler/scala/tools/nsc/Interpreter.scala
new file mode 100644
index 0000000000..434f19f21b
--- /dev/null
+++ b/src/compiler/scala/tools/nsc/Interpreter.scala
@@ -0,0 +1,12 @@
+package scala.tools.nsc
+
+import interpreter._
+import java.io._
+
+/** A compatibility stub.
+ */
+@deprecated("Use a class in the scala.tools.nsc.interpreter package.", "2.9.0")
+class Interpreter(settings: Settings, out: PrintWriter) extends IMain(settings, out) {
+ def this(settings: Settings) = this(settings, new NewLinePrintWriter(new ConsoleWriter, true))
+ def this() = this(new Settings())
+} \ No newline at end of file
diff --git a/src/compiler/scala/tools/nsc/InterpreterLoop.scala b/src/compiler/scala/tools/nsc/InterpreterLoop.scala
new file mode 100644
index 0000000000..a0be3f4fdb
--- /dev/null
+++ b/src/compiler/scala/tools/nsc/InterpreterLoop.scala
@@ -0,0 +1,12 @@
+package scala.tools.nsc
+
+import interpreter._
+import java.io._
+
+/** A compatibility stub.
+ */
+@deprecated("Use a class in the scala.tools.nsc.interpreter package.", "2.9.0")
+class InterpreterLoop(in0: Option[BufferedReader], out: PrintWriter) extends ILoop(in0, out) {
+ def this(in0: BufferedReader, out: PrintWriter) = this(Some(in0), out)
+ def this() = this(None, new PrintWriter(scala.Console.out))
+}
diff --git a/src/compiler/scala/tools/nsc/interpreter/ILoop.scala b/src/compiler/scala/tools/nsc/interpreter/ILoop.scala
index f236ee8031..de778e7469 100644
--- a/src/compiler/scala/tools/nsc/interpreter/ILoop.scala
+++ b/src/compiler/scala/tools/nsc/interpreter/ILoop.scala
@@ -49,6 +49,9 @@ class ILoop(in0: Option[BufferedReader], protected val out: JPrintWriter)
var settings: Settings = _
var intp: IMain = _
+ @deprecated("Use `intp` instead.", "2.9.0") def interpreter = intp
+ @deprecated("Use `intp` instead.", "2.9.0") def interpreter_= (i: Interpreter): Unit = intp = i
+
/** Having inherited the difficult "var-ness" of the repl instance,
* I'm trying to work around it by moving operations into a class from
* which it will appear a stable prefix.
@@ -869,6 +872,9 @@ class ILoop(in0: Option[BufferedReader], protected val out: JPrintWriter)
case help => echoNoNL(help) ; true
}
}
+
+ @deprecated("Use `process` instead", "2.9.0")
+ def main(settings: Settings): Unit = process(settings)
}
object ILoop {