@@ -6,8 +6,9 @@ package xsbt
6
6
import xsbti .Logger
7
7
8
8
import dotty .tools .dotc .core .Contexts .Context
9
- import dotty .tools .dotc .repl .REPL
10
- import dotty .tools .dotc .repl .REPL .Config
9
+ // TODO: decide what to do with sbt REPL interface
10
+ // import dotty.tools.dotc.repl.REPL
11
+ // import dotty.tools.dotc.repl.REPL.Config
11
12
12
13
class ConsoleInterface {
13
14
def commandArguments (
@@ -27,43 +28,43 @@ class ConsoleInterface {
27
28
bindValues : Array [Any ],
28
29
log : Logger
29
30
): Unit = {
30
- val completeArgs =
31
- args :+
32
- " -bootclasspath" :+ bootClasspathString :+
33
- " -classpath" :+ classpathString
31
+ // val completeArgs =
32
+ // args :+
33
+ // "-bootclasspath" :+ bootClasspathString :+
34
+ // "-classpath" :+ classpathString
34
35
35
- println(" Starting dotty interpreter..." )
36
- val repl = ConsoleInterface .customRepl(
37
- initialCommands :: Nil ,
38
- cleanupCommands :: Nil ,
39
- bindNames zip bindValues,
40
- loader
41
- )
42
- repl.process(completeArgs)
36
+ // println("Starting dotty interpreter...")
37
+ // val repl = ConsoleInterface.customRepl(
38
+ // initialCommands :: Nil,
39
+ // cleanupCommands :: Nil,
40
+ // bindNames zip bindValues,
41
+ // loader
42
+ // )
43
+ // repl.process(completeArgs)
43
44
}
44
45
}
45
46
46
47
object ConsoleInterface {
47
- def customConfig (
48
- initCmds : List [String ],
49
- cleanupCmds : List [String ],
50
- boundVals : Array [(String , Any )],
51
- loader : ClassLoader
52
- ) = new Config {
53
- override val initialCommands : List [String ] = initCmds
54
- override val cleanupCommands : List [String ] = cleanupCmds
55
- override val boundValues : Array [(String , Any )] = boundVals
56
- override val classLoader : Option [ClassLoader ] = Option (loader)
57
- }
48
+ // def customConfig(
49
+ // initCmds: List[String],
50
+ // cleanupCmds: List[String],
51
+ // boundVals: Array[(String, Any)],
52
+ // loader: ClassLoader
53
+ // ) = new Config {
54
+ // override val initialCommands: List[String] = initCmds
55
+ // override val cleanupCommands: List[String] = cleanupCmds
56
+ // override val boundValues: Array[(String, Any)] = boundVals
57
+ // override val classLoader: Option[ClassLoader] = Option(loader)
58
+ // }
58
59
59
- def customRepl (cfg : Config ): REPL = new REPL {
60
- override lazy val config = cfg
61
- }
60
+ // def customRepl(cfg: Config): REPL = new REPL {
61
+ // override lazy val config = cfg
62
+ // }
62
63
63
- def customRepl (
64
- initCmds : List [String ],
65
- cleanupCmds : List [String ],
66
- boundVals : Array [(String , Any )],
67
- loader : ClassLoader
68
- ): REPL = customRepl(customConfig(initCmds, cleanupCmds, boundVals, loader))
64
+ // def customRepl(
65
+ // initCmds: List[String],
66
+ // cleanupCmds: List[String],
67
+ // boundVals: Array[(String, Any)],
68
+ // loader: ClassLoader
69
+ // ): REPL = customRepl(customConfig(initCmds, cleanupCmds, boundVals, loader))
69
70
}
0 commit comments