aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/config
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-03-04 11:43:57 +0100
committerMartin Odersky <odersky@gmail.com>2016-03-12 16:08:36 +0100
commitc43ae4a31cac6363050ab07aa6ec1a9f0e9213b4 (patch)
treea919e11248ea3f62155a70b6aa12ab701a82a083 /src/dotty/tools/dotc/config
parente68d68414fa346fad9dee204746d826ee172e861 (diff)
downloaddotty-c43ae4a31cac6363050ab07aa6ec1a9f0e9213b4.tar.gz
dotty-c43ae4a31cac6363050ab07aa6ec1a9f0e9213b4.tar.bz2
dotty-c43ae4a31cac6363050ab07aa6ec1a9f0e9213b4.zip
Add patching functionality for migration
Firs version of patching that can be invoked by dotty compiler itself.
Diffstat (limited to 'src/dotty/tools/dotc/config')
-rw-r--r--src/dotty/tools/dotc/config/ScalaSettings.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/config/ScalaSettings.scala b/src/dotty/tools/dotc/config/ScalaSettings.scala
index aa264329c..17da1f8d1 100644
--- a/src/dotty/tools/dotc/config/ScalaSettings.scala
+++ b/src/dotty/tools/dotc/config/ScalaSettings.scala
@@ -48,6 +48,7 @@ class ScalaSettings extends Settings.SettingGroup {
val d = StringSetting("-d", "directory|jar", "destination for generated classfiles.", ".")
val nospecialization = BooleanSetting("-no-specialization", "Ignore @specialize annotations.")
val language = MultiStringSetting("-language", "feature", "Enable one or more language features.")
+ val rewrite = BooleanSetting("-rewrite", "When used in conjunction with -language:Scala2 rewrites sources to migrate to new syntax")
/** -X "Advanced" settings
*/