Skip to content

Commit cbf1f18

Browse files
authored
fix(scaladocs): make sure scaladocs are aligned with actual behavior (#17448)
This change just make sure the actual behavior is aligned with the comments about plugin options. refs #17238
1 parent 4ffe5af commit cbf1f18

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

compiler/src/dotty/tools/dotc/plugins/Plugin.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ sealed trait Plugin {
4444
trait StandardPlugin extends Plugin {
4545
/** Non-research plugins should override this method to return the phases
4646
*
47-
* @param options commandline options to the plugin, `-P:plugname:opt1,opt2` becomes List(opt1, opt2)
47+
* @param options commandline options to the plugin.
4848
* @return a list of phases to be added to the phase plan
4949
*/
5050
def init(options: List[String]): List[PluginPhase]

compiler/src/dotty/tools/dotc/plugins/Plugins.scala

-2
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,6 @@ trait Plugins {
116116

117117
/** Add plugin phases to phase plan */
118118
def addPluginPhases(plan: List[List[Phase]])(using Context): List[List[Phase]] = {
119-
// plugin-specific options.
120-
// The user writes `-P:plugname:opt1,opt2`, but the plugin sees `List(opt1, opt2)`.
121119
def options(plugin: Plugin): List[String] = {
122120
def namec = plugin.name + ":"
123121
ctx.settings.pluginOptions.value filter (_ startsWith namec) map (_ stripPrefix namec)

0 commit comments

Comments
 (0)