Skip to content

Commit

Permalink
Enable -Yrangepos by default
Browse files Browse the repository at this point in the history
  • Loading branch information
eed3si9n committed Aug 2, 2020
1 parent 98384fd commit e548c35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/compiler/scala/tools/nsc/settings/ScalaSettings.scala
Expand Up @@ -251,7 +251,7 @@ trait ScalaSettings extends StandardScalaSettings with Warnings { _: MutableSett
val Ydumpclasses = StringSetting ("-Ydump-classes", "dir", "Dump the generated bytecode to .class files (useful for reflective compilation that utilizes in-memory classloaders).", "")
val stopAfter = PhasesSetting ("-Ystop-after", "Stop after") withAbbreviation ("-stop") // backward compat
val stopBefore = PhasesSetting ("-Ystop-before", "Stop before")
val Yrangepos = BooleanSetting ("-Yrangepos", "Use range positions for syntax trees.")
val Yrangepos = BooleanSetting ("-Yrangepos", "Use range positions for syntax trees.", true)
val Yvalidatepos = PhasesSetting ("-Yvalidate-pos", s"Validate positions after the given phases (implies ${Yrangepos.name})") withPostSetHook (_ => Yrangepos.value = true)
val Yreifycopypaste = BooleanSetting ("-Yreify-copypaste", "Dump the reified trees in copypasteable representation.")
val Ymacroexpand = ChoiceSetting ("-Ymacro-expand", "policy", "Control expansion of macros, useful for scaladoc and presentation compiler.", List(MacroExpand.Normal, MacroExpand.None, MacroExpand.Discard), MacroExpand.Normal)
Expand Down
2 changes: 1 addition & 1 deletion src/reflect/scala/reflect/runtime/Settings.scala
Expand Up @@ -46,7 +46,7 @@ private[reflect] class Settings extends MutableSettings {
val XnoPatmatAnalysis = new BooleanSetting(false)
val Xprintpos = new BooleanSetting(false)
val Yposdebug = new BooleanSetting(false)
val Yrangepos = new BooleanSetting(false)
val Yrangepos = new BooleanSetting(true)
val Yshowsymowners = new BooleanSetting(false)
val Yshowsymkinds = new BooleanSetting(false)
val breakCycles = new BooleanSetting(false)
Expand Down

0 comments on commit e548c35

Please sign in to comment.