Skip to content

Commit 89dd249

Browse files
committed
allow to modify rendering internals from the outside
1 parent 41eff34 commit 89dd249

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/src/dotty/tools/repl/Rendering.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ private[repl] class Rendering(parentClassLoader: Option[ClassLoader] = None):
2828

2929
import Rendering._
3030

31-
private var myClassLoader: AbstractFileClassLoader = _
31+
var myClassLoader: AbstractFileClassLoader = _
3232

3333
/** (value, maxElements, maxCharacters) => String */
34-
private var myReplStringOf: (Object, Int, Int) => String = _
34+
var myReplStringOf: (Object, Int, Int) => String = _
3535

3636
/** Class loader used to load compiled code */
3737
private[repl] def classLoader()(using Context) =

compiler/src/dotty/tools/repl/ReplDriver.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class ReplDriver(settings: Array[String],
118118
private var rootCtx: Context = _
119119
private var shouldStart: Boolean = _
120120
private var compiler: ReplCompiler = _
121-
private var rendering: Rendering = _
121+
protected var rendering: Rendering = _
122122

123123
// initialize the REPL session as part of the constructor so that once `run`
124124
// is called, we're in business

0 commit comments

Comments
 (0)