diff options
author | Martin Odersky <odersky@gmail.com> | 2011-07-06 10:49:14 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2011-07-06 10:49:14 +0000 |
commit | 124e2f95aee0085b5df1af899008a63a762bece6 (patch) | |
tree | 991728d457c7df09349a3d693afcf07e660c510e /src/compiler/scala/tools/nsc/interactive/CompilerControl.scala | |
parent | f7bca9a7bf1fd16ae3261c9977f236b4f588be3d (diff) | |
download | scala-124e2f95aee0085b5df1af899008a63a762bece6.tar.gz scala-124e2f95aee0085b5df1af899008a63a762bece6.tar.bz2 scala-124e2f95aee0085b5df1af899008a63a762bece6.zip |
scratchpad works in interactive REPL; ready to ...
scratchpad works in interactive REPL; ready to be integrate in Eclipse.
Diffstat (limited to 'src/compiler/scala/tools/nsc/interactive/CompilerControl.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/interactive/CompilerControl.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/nsc/interactive/CompilerControl.scala b/src/compiler/scala/tools/nsc/interactive/CompilerControl.scala index ef5791e6d1..5cb7a1d811 100644 --- a/src/compiler/scala/tools/nsc/interactive/CompilerControl.scala +++ b/src/compiler/scala/tools/nsc/interactive/CompilerControl.scala @@ -215,8 +215,8 @@ trait CompilerControl { self: Global => * everything is brought up to date in a regular type checker run. * @param response The response. */ - def askInstrumented(source: SourceFile, response: Response[(String, SourceFile)]) = - postWorkItem(new AskInstrumentedItem(source, response)) + def askInstrumented(source: SourceFile, line: Int, response: Response[(String, Array[Char])]) = + postWorkItem(new AskInstrumentedItem(source, line, response)) /** Cancels current compiler run and start a fresh one where everything will be re-typechecked * (but not re-loaded). @@ -328,8 +328,8 @@ trait CompilerControl { self: Global => override def toString = "getParsedEntered "+source+", keepLoaded = "+keepLoaded } - class AskInstrumentedItem(val source: SourceFile, response: Response[(String, SourceFile)]) extends WorkItem { - def apply() = self.getInstrumented(source, response) + class AskInstrumentedItem(val source: SourceFile, line: Int, response: Response[(String, Array[Char])]) extends WorkItem { + def apply() = self.getInstrumented(source, line, response) override def toString = "getInstrumented "+source } } |