File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
docs/docs/reference/changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ The common plugins that add new phases to the compiler pipeline are called
25
25
_ standard plugins_ in Dotty. In terms of features, they are similar to
26
26
Scalac plugins, despite minor changes in the API.
27
27
28
- ## Physical Interface
28
+ ## Artifact Interface
29
29
30
30
Both research plugins and standard plugins share the same command line options
31
- as Scalac plugins. You may manually specify a plugin as a compiler option as follows:
31
+ as Scalac plugins. You may integrate a plugin in the Dotty compiler as follows:
32
32
33
33
``` shell
34
34
dotc -Xplugin:pluginA.jar -Xplugin:pluginB.jar Test.scala
@@ -44,12 +44,16 @@ pluginClass=dividezero.DivideZero
44
44
```
45
45
46
46
The above is a change from Scalac, which depends on an XML file
47
- ` scalac-plugin.xml ` . Starting from 1.1.5, SBT also supports Dotty compiler plugins:
47
+ ` scalac-plugin.xml ` .
48
+
49
+ Starting from 1.1.5, SBT also supports Dotty compiler plugins:
48
50
49
51
``` Scala
50
52
addCompilerPlugin(" org.divbyzero" % " divbyzero" % " 1.0" )
51
53
```
52
54
55
+ With the code above, SBT will prepare the correct options to the compiler.
56
+
53
57
## Standard Plugin
54
58
55
59
The following code example shows the template for a standard plugin:
You can’t perform that action at this time.
0 commit comments