Skip to content

Commit fc0eb52

Browse files
committed
make variable name consistent in ScalaSettings
Options with syntax "-Y" should NOT be named with a variable beginning with `X`.
1 parent fe94b7a commit fc0eb52

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/dotty/tools/dotc/config/ScalaSettings.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ class ScalaSettings extends Settings.SettingGroup {
105105
val YcheckMods = BooleanSetting("-Ycheck-mods", "Check that symbols and their defining trees have modifiers in sync")
106106
val YcheckTypedTrees = BooleanSetting("-YcheckTypedTrees", "Check all constructured typed trees for type correctness")
107107
val Yshow = PhasesSetting("-Yshow", "(Requires -Xshow-class or -Xshow-object) Show after")
108-
val Xcloselim = BooleanSetting("-Yclosure-elim", "Perform closure elimination.")
108+
val Ycloselim = BooleanSetting("-Yclosure-elim", "Perform closure elimination.")
109109
val Ycompacttrees = BooleanSetting("-Ycompact-trees", "Use compact tree printer when displaying trees.")
110110
val noCompletion = BooleanSetting("-Yno-completion", "Disable tab-completion in the REPL.")
111-
val Xdce = BooleanSetting("-Ydead-code", "Perform dead code elimination.")
111+
val Ydce = BooleanSetting("-Ydead-code", "Perform dead code elimination.")
112112
val debug = BooleanSetting("-Ydebug", "Increase the quantity of debugging output.")
113113
val debugNames = BooleanSetting("-YdebugNames", "Show name-space indicators when printing names")
114114
val debugTrace = BooleanSetting("-Ydebug-trace", "Trace core operations")
@@ -119,17 +119,17 @@ class ScalaSettings extends Settings.SettingGroup {
119119
val inline = BooleanSetting("-Yinline", "Perform inlining when possible.")
120120
val inlineHandlers = BooleanSetting("-Yinline-handlers", "Perform exception handler inlining when possible.")
121121
val YinlinerWarnings = BooleanSetting("-Yinline-warnings", "Emit inlining warnings. (Normally surpressed due to high volume)")
122-
val Xlinearizer = ChoiceSetting("-Ylinearizer", "which", "Linearizer to use", List("normal", "dfs", "rpo", "dump"), "rpo")
122+
val Ylinearizer = ChoiceSetting("-Ylinearizer", "which", "Linearizer to use", List("normal", "dfs", "rpo", "dump"), "rpo")
123123
val log = PhasesSetting("-Ylog", "Log operations during")
124124
val Ylogcp = BooleanSetting("-Ylog-classpath", "Output information about what classpath is being applied.")
125125
val Ynogenericsig = BooleanSetting("-Yno-generic-signatures", "Suppress generation of generic signatures for Java.")
126126
val YnoImports = BooleanSetting("-Yno-imports", "Compile without importing scala.*, java.lang.*, or Predef.")
127127
val nopredef = BooleanSetting("-Yno-predef", "Compile without importing Predef.")
128128
val noAdaptedArgs = BooleanSetting("-Yno-adapted-args", "Do not adapt an argument list (either by inserting () or creating a tuple) to match the receiver.")
129129
val selfInAnnots = BooleanSetting("-Yself-in-annots", "Include a \"self\" identifier inside of annotations.")
130-
val Xshowtrees = BooleanSetting("-Yshow-trees", "(Requires -Xprint:) Print detailed ASTs in formatted form.")
131-
val XshowtreesCompact = BooleanSetting("-Yshow-trees-compact", "(Requires -Xprint:) Print detailed ASTs in compact form.")
132-
val XshowtreesStringified = BooleanSetting("-Yshow-trees-stringified", "(Requires -Xprint:) Print stringifications along with detailed ASTs.")
130+
val Yshowtrees = BooleanSetting("-Yshow-trees", "(Requires -Xprint:) Print detailed ASTs in formatted form.")
131+
val YshowtreesCompact = BooleanSetting("-Yshow-trees-compact", "(Requires -Xprint:) Print detailed ASTs in compact form.")
132+
val YshowtreesStringified = BooleanSetting("-Yshow-trees-stringified", "(Requires -Xprint:) Print stringifications along with detailed ASTs.")
133133
val Yshowsyms = BooleanSetting("-Yshow-syms", "Print the AST symbol hierarchy after each phase.")
134134
val Yshowsymkinds = BooleanSetting("-Yshow-symkinds", "Print abbreviated symbol kinds next to symbol names.")
135135
val Yskip = PhasesSetting("-Yskip", "Skip")

0 commit comments

Comments
 (0)