From 12d895587444d5d59e7d75dfaf7b85deb61e99e0 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Fri, 4 Mar 2016 12:23:10 +0100 Subject: Better encapsulation No more leaking ofMove PatchedFiles in a settings option. Move all patch classes into a `Rewrites` object. --- src/dotty/tools/dotc/config/ScalaSettings.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dotty/tools/dotc/config') diff --git a/src/dotty/tools/dotc/config/ScalaSettings.scala b/src/dotty/tools/dotc/config/ScalaSettings.scala index cdbf6ec50..a10165be2 100644 --- a/src/dotty/tools/dotc/config/ScalaSettings.scala +++ b/src/dotty/tools/dotc/config/ScalaSettings.scala @@ -2,7 +2,7 @@ package dotty.tools.dotc package config import PathResolver.Defaults -import rewrite.Patches +import rewrite.Rewrites class ScalaSettings extends Settings.SettingGroup { @@ -50,7 +50,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 = OptionSetting[Patches.PatchedFiles]("-rewrite", "When used in conjunction with -language:Scala2 rewrites sources to migrate to new syntax") + val rewrite = OptionSetting[Rewrites]("-rewrite", "When used in conjunction with -language:Scala2 rewrites sources to migrate to new syntax") /** -X "Advanced" settings */ -- cgit v1.2.3