File tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/repl
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ class ReplDriver(settings: Array[String],
138
138
* observable outside of the CLI, for this reason, most helper methods are
139
139
* `protected final` to facilitate testing.
140
140
*/
141
- final def runUntilQuit (using initialState : State = initialState)(): State = {
141
+ def runUntilQuit (using initialState : State = initialState)(): State = {
142
142
val terminal = new JLineTerminal
143
143
144
144
out.println(
@@ -181,7 +181,7 @@ class ReplDriver(settings: Array[String],
181
181
interpret(parsed, quiet = true )
182
182
}
183
183
184
- private def runBody (body : => State ): State = rendering.classLoader()(using rootCtx).asContext(withRedirectedOutput(body))
184
+ protected def runBody (body : => State ): State = rendering.classLoader()(using rootCtx).asContext(withRedirectedOutput(body))
185
185
186
186
// TODO: i5069
187
187
final def bind (name : String , value : Any )(using state : State ): State = state
@@ -247,7 +247,7 @@ class ReplDriver(settings: Array[String],
247
247
.getOrElse(Nil )
248
248
end completions
249
249
250
- private def interpret (res : ParseResult , quiet : Boolean = false )(using state : State ): State = {
250
+ protected def interpret (res : ParseResult , quiet : Boolean = false )(using state : State ): State = {
251
251
res match {
252
252
case parsed : Parsed if parsed.trees.nonEmpty =>
253
253
compile(parsed, state, quiet)
You can’t perform that action at this time.
0 commit comments