blob: 794d41adc752666188be9a800e5b236a6902aa39 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* NSC -- new Scala compiler
* Copyright 2005-2013 LAMP/EPFL
* @author Paul Phillips
*/
package scala.tools.nsc
package interpreter
package session
/** An implementation-agnostic history interface which makes no
* reference to the jline classes. Very sparse right now.
*/
trait History {
def asStrings: List[String]
def index: Int
def size: Int
}
object NoHistory extends History {
def asStrings = Nil
def index = 0
def size = 0
}
|