Skip to content

Commit

Permalink
Fix PrefixSetting
Browse files Browse the repository at this point in the history
  • Loading branch information
dwijnand committed Jul 1, 2024
1 parent 8bc0df6 commit 504693f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/src/dotty/tools/dotc/config/Settings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,8 @@ object Settings:
def PhasesSetting(category: SettingCategory, name: String, descr: String, default: String = "", aliases: List[String] = Nil, deprecation: Option[Deprecation] = None): Setting[List[String]] =
publish(Setting(category, prependName(name), descr, if (default.isEmpty) Nil else List(default), aliases = aliases, deprecation = deprecation))

def PrefixSetting(category: SettingCategory, name: String, descr: String, deprecation: Option[Deprecation] = None): Setting[List[String]] =
def PrefixSetting(category: SettingCategory, name0: String, descr: String, deprecation: Option[Deprecation] = None): Setting[List[String]] =
val name = prependName(name0)
val prefix = name.takeWhile(_ != '<')
publish(Setting(category, "-" + name, descr, Nil, prefix = Some(prefix), deprecation = deprecation))

Expand Down

0 comments on commit 504693f

Please sign in to comment.