diff options
author | Paul Phillips <paulp@improving.org> | 2013-03-04 14:47:01 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-03-04 15:56:36 -0800 |
commit | 6898c9fd6c3ffb975e07cdcc5619f8e771e21ac0 (patch) | |
tree | 0b1970a60daa79f8da6135b10a9c9de2436ee639 /src/compiler/scala/tools/nsc/interpreter/IMain.scala | |
parent | dc1cd96ffd44ddd47ea1d5be88b4b9e438bd9c3b (diff) | |
download | scala-6898c9fd6c3ffb975e07cdcc5619f8e771e21ac0.tar.gz scala-6898c9fd6c3ffb975e07cdcc5619f8e771e21ac0.tar.bz2 scala-6898c9fd6c3ffb975e07cdcc5619f8e771e21ac0.zip |
Eliminated separate RangePositions trait.
One of those eternal headaches which probably sounded better
on paper. Even before range positions are the default, there's
no reason we can't have the range position code available
in all globals enabled via settings, just like everything else.
Diffstat (limited to 'src/compiler/scala/tools/nsc/interpreter/IMain.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/interpreter/IMain.scala | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/nsc/interpreter/IMain.scala b/src/compiler/scala/tools/nsc/interpreter/IMain.scala index 4d1ceb2818..120761de4c 100644 --- a/src/compiler/scala/tools/nsc/interpreter/IMain.scala +++ b/src/compiler/scala/tools/nsc/interpreter/IMain.scala @@ -242,10 +242,7 @@ class IMain(initialSettings: Settings, protected val out: JPrintWriter) extends protected def newCompiler(settings: Settings, reporter: Reporter): ReplGlobal = { settings.outputDirs setSingleOutput replOutput.dir settings.exposeEmptyPackage.value = true - if (settings.Yrangepos.value) - new RangePositionGlobal(settings, reporter) with ReplGlobal { override def toString: String = "<global>" } - else - new Global(settings, reporter) with ReplGlobal { override def toString: String = "<global>" } + new Global(settings, reporter) with ReplGlobal { override def toString: String = "<global>" } } /** Parent classloader. Overridable. */ |