Skip to content

Commit

Permalink
Putting back things sbt noticed were gone.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulp committed May 16, 2012
1 parent 3e038d8 commit b48aa90
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
12 changes: 12 additions & 0 deletions 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())
}
12 changes: 12 additions & 0 deletions 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))
}
6 changes: 6 additions & 0 deletions src/compiler/scala/tools/nsc/interpreter/ILoop.scala
Expand Up @@ -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.
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit b48aa90

Please sign in to comment.