You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler/src/dotty/tools/dotc/config/ScalaSettings.scala
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -25,8 +25,6 @@ class ScalaSettings extends Settings.SettingGroup {
25
25
valpriorityclasspath:Setting[String] =PathSetting("-priorityclasspath", "class path that takes precedence over all other paths (or testing only)", "") withAbbreviation "--priority-class-path"
26
26
27
27
/** Other settings */
28
-
valcleansyntax:Setting[Boolean] =BooleanSetting("-cleansyntax", "allow control expressions without parentheses")
29
-
valrevertClean:Setting[Boolean] =BooleanSetting("-revertclean", "when used with -rewrite, rewrite from clean syntax to classical (...) syntax")
30
28
valdeprecation:Setting[Boolean] =BooleanSetting("-deprecation", "Emit warning and location for usages of deprecated APIs.") withAbbreviation "--deprecation"
31
29
valmigration:Setting[Boolean] =BooleanSetting("-migration", "Emit warning and location for migration issues from Scala 2.") withAbbreviation "--migration"
32
30
valencoding:Setting[String] =StringSetting("-encoding", "encoding", "Specify character encoding used by source files.", Properties.sourceEncoding) withAbbreviation "--encoding"
@@ -50,6 +48,9 @@ class ScalaSettings extends Settings.SettingGroup {
50
48
valsilentWarnings:Setting[Boolean] =BooleanSetting("-nowarn", "Silence all warnings.") withAbbreviation "--no-warnings"
51
49
valfromTasty:Setting[Boolean] =BooleanSetting("-from-tasty", "Compile classes from tasty in classpath. The arguments are used as class names.") withAbbreviation "--from-tasty"
52
50
51
+
valcStyle:Setting[Boolean] =BooleanSetting("-c-style", "when used with -rewrite, produces control expressions with parentheses")
52
+
valpascalStyle:Setting[Boolean] =BooleanSetting("-pascal-style", "when used with -rewrite, produces control expressions without parentheses")
53
+
53
54
/** Decompiler settings */
54
55
valprintTasty:Setting[Boolean] =BooleanSetting("-print-tasty", "Prints the raw tasty.") withAbbreviation "--print-tasty"
55
56
valprintLines:Setting[Boolean] =BooleanSetting("-print-lines", "Show source code line numbers.") withAbbreviation "--print-lines"
0 commit comments