diff options
author | Martin Odersky <odersky@gmail.com> | 2012-08-29 12:44:06 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2012-08-30 22:02:37 +0200 |
commit | 49161e2c8bd320ee3a8566fcfefd31550f2e8a05 (patch) | |
tree | 68becd93d6b6f0e046a12e32f7ccb5a292654e35 /src/compiler | |
parent | ffe5f56eb500ed4dd856087864d8d3313eace931 (diff) | |
download | scala-49161e2c8bd320ee3a8566fcfefd31550f2e8a05.tar.gz scala-49161e2c8bd320ee3a8566fcfefd31550f2e8a05.tar.bz2 scala-49161e2c8bd320ee3a8566fcfefd31550f2e8a05.zip |
Two fixes for the worksheet instrumenter
(1) Handle empty worksheets
(2) Handle for expressions
Review by @dragos
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/interactive/ScratchPadMaker.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/interactive/ScratchPadMaker.scala b/src/compiler/scala/tools/nsc/interactive/ScratchPadMaker.scala index 2aed99657e..e4458f1ffa 100644 --- a/src/compiler/scala/tools/nsc/interactive/ScratchPadMaker.scala +++ b/src/compiler/scala/tools/nsc/interactive/ScratchPadMaker.scala @@ -9,7 +9,7 @@ trait ScratchPadMaker { self: Global => import definitions._ - private case class Patch(offset: Int, text: String) + private case class Patch(offset: Int, text: String) { private class Patcher(contents: Array[Char], endOffset: Int) extends Traverser { var objectName: String = "" |