Skip to content

Commit 19d3c16

Browse files
liufengyunallanrenucci
authored andcommitted
rename physical interface to artifact interface
1 parent 074a5dc commit 19d3c16

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/docs/reference/changed/compiler-plugins.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ The common plugins that add new phases to the compiler pipeline are called
2525
_standard plugins_ in Dotty. In terms of features, they are similar to
2626
Scalac plugins, despite minor changes in the API.
2727

28-
## Physical Interface
28+
## Artifact Interface
2929

3030
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:
3232

3333
```shell
3434
dotc -Xplugin:pluginA.jar -Xplugin:pluginB.jar Test.scala
@@ -44,12 +44,16 @@ pluginClass=dividezero.DivideZero
4444
```
4545

4646
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:
4850

4951
```Scala
5052
addCompilerPlugin("org.divbyzero" % "divbyzero" % "1.0")
5153
```
5254

55+
With the code above, SBT will prepare the correct options to the compiler.
56+
5357
## Standard Plugin
5458

5559
The following code example shows the template for a standard plugin:

0 commit comments

Comments
 (0)