diff options
author | Paul Phillips <paulp@improving.org> | 2011-01-09 06:21:20 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-01-09 06:21:20 +0000 |
commit | 7d9fb75275430bcdecf8541d0d30c59a7e10881a (patch) | |
tree | 1924389261acb23e58c9d8a6b9a0063c4b3cc1f6 /src | |
parent | d4748121aa58aa048a751a02d8f9910deab7f915 (diff) | |
download | scala-7d9fb75275430bcdecf8541d0d30c59a7e10881a.tar.gz scala-7d9fb75275430bcdecf8541d0d30c59a7e10881a.tar.bz2 scala-7d9fb75275430bcdecf8541d0d30c59a7e10881a.zip |
Brought back and deprecated onlyPresentation to...
Brought back and deprecated onlyPresentation to unbreak sbt. (Another
fine reason for us to push all the way to using sbt is that we wouldn't
unwittingly break it, as that change and my recent jline changes both
did.) Maybe there is a better way to do what's in this one: review by
dragos.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/Global.scala | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala index f3563b5dad..56fe04055c 100644 --- a/src/compiler/scala/tools/nsc/Global.scala +++ b/src/compiler/scala/tools/nsc/Global.scala @@ -1149,10 +1149,18 @@ class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable } }) } - + // In order to not outright break code which overrides onlyPresentation (like sbt 0.7.5.RC0) + // I restored and deprecated it. That would be enough to avoid the compilation + // failure, but the override wouldn't accomplish anything. So now forInteractive + // and forScaladoc default to onlyPresentation, which is the same as defaulting + // to false except in old code. The downside is that this leaves us calling a + // deprecated method: but I see no simple way out, so I leave it for now. def forJVM = opt.jvm def forMSIL = opt.msil - def forInteractive = false - def forScaladoc = false + def forInteractive = onlyPresentation + def forScaladoc = onlyPresentation def createJavadoc = false + + @deprecated("Use forInteractive or forScaladoc, depending on what you're after") + def onlyPresentation = false } |