summaryrefslogtreecommitdiff
path: root/src/repl/scala/tools/nsc/interpreter/session/package.scala
blob: a3d7312c981a270e88492b42ed23cbe74ca6ede3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* NSC -- new Scala compiler
 * Copyright 2005-2013 LAMP/EPFL
 * @author Paul Phillips
 */

package scala.tools.nsc
package interpreter
import scala.language.implicitConversions

/** Files having to do with the state of a repl session:
 *  lines of text entered, types and terms defined, etc.
 */
package object session {
  type JIterator[T]       = java.util.Iterator[T]
  type JListIterator[T]   = java.util.ListIterator[T]

  type JEntry             = jline.console.history.History.Entry
  type JHistory           = jline.console.history.History
  type JMemoryHistory     = jline.console.history.MemoryHistory
  type JPersistentHistory = jline.console.history.PersistentHistory

  private[interpreter] implicit def charSequenceFix(x: CharSequence): String = x.toString
}