Skip to content
This repository has been archived by the owner. It is now read-only.

Commit 66d449c

Browse files
committed
Move REPL related xsbti Java to correct module
xsbti Java classes were ported into compiler bridge, instead of the compiler interface by mistake. Since there's not code utilizing this interface yet, this was never caught.
1 parent 722534e commit 66d449c

4 files changed

+64
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* Zinc - The incremental compiler for Scala.
3+
* Copyright 2011 - 2017, Lightbend, Inc.
4+
* Copyright 2008 - 2010, Mark Harrah
5+
* This software is released under the terms written in LICENSE.
6+
*/
7+
8+
package xsbti;
9+
10+
public interface InteractiveConsoleFactory {
11+
InteractiveConsoleInterface createConsole(
12+
String[] args,
13+
String bootClasspathString,
14+
String classpathString,
15+
String initialCommands,
16+
String cleanupCommands,
17+
ClassLoader loader,
18+
String[] bindNames,
19+
Object[] bindValues,
20+
Logger log
21+
);
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Zinc - The incremental compiler for Scala.
3+
* Copyright 2011 - 2017, Lightbend, Inc.
4+
* Copyright 2008 - 2010, Mark Harrah
5+
* This software is released under the terms written in LICENSE.
6+
*/
7+
8+
package xsbti;
9+
10+
public interface InteractiveConsoleInterface {
11+
void reset();
12+
InteractiveConsoleResponse interpret(String line, boolean synthetic);
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* Zinc - The incremental compiler for Scala.
3+
* Copyright 2011 - 2017, Lightbend, Inc.
4+
* Copyright 2008 - 2010, Mark Harrah
5+
* This software is released under the terms written in LICENSE.
6+
*/
7+
8+
package xsbti;
9+
10+
/** Public interface for repl responses. */
11+
public interface InteractiveConsoleResponse {
12+
InteractiveConsoleResult result();
13+
14+
String output();
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* Zinc - The incremental compiler for Scala.
3+
* Copyright 2011 - 2017, Lightbend, Inc.
4+
* Copyright 2008 - 2010, Mark Harrah
5+
* This software is released under the terms written in LICENSE.
6+
*/
7+
8+
package xsbti;
9+
10+
public enum InteractiveConsoleResult {
11+
Success,
12+
Incomplete,
13+
Error
14+
}

0 commit comments

Comments
 (0)