File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
compiler/src/dotty/tools/dotc/plugins
sbt-dotty/sbt-test/sbt-dotty/analyzer-plugin/lib
tests/plugins/custom/analyzer Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ sealed trait Plugin {
29
29
* Research plugin receives a phase plan and return a new phase plan, while
30
30
* non-research plugin returns a list of phases to be inserted.
31
31
*
32
- * @note Research plugins only compile with nightly build.
33
32
*/
34
33
def isResearch : Boolean = isInstanceOf [ResearchPlugin ]
35
34
@@ -40,6 +39,7 @@ sealed trait Plugin {
40
39
val optionsHelp : Option [String ] = None
41
40
}
42
41
42
+ /** A standard plugin can be inserted into the normal compilation pipeline */
43
43
trait StandardPlugin extends Plugin {
44
44
/** Non-research plugins should override this method to return the phases
45
45
*
@@ -49,6 +49,10 @@ trait StandardPlugin extends Plugin {
49
49
def init (options : List [String ]): List [PluginPhase ]
50
50
}
51
51
52
+ /** A research plugin may customize the compilation pipeline freely
53
+ *
54
+ * @note Research plugins are only supported by nightly or snapshot build of the compiler.
55
+ */
52
56
trait ResearchPlugin extends Plugin {
53
57
/** Research plugins should override this method to return the new phase plan
54
58
*
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ class A(val n: Int) {
4
4
def this (c : Char ) = this (c.toInt)
5
5
6
6
val a = 30 * n
7
- // val p = Product("x", 100)
8
7
9
8
class B (x : Int ) {
10
9
def this (c : Char ) = this (c.toInt)
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ class A(val n: Int) {
4
4
def this (c : Char ) = this (c.toInt)
5
5
6
6
val a = 30 * n
7
- // val p = Product("x", 100)
8
7
9
8
class B (x : Int ) {
10
9
def this (c : Char ) = this (c.toInt)
You can’t perform that action at this time.
0 commit comments