Skip to content

Commit c5b585c

Browse files
committed
Add link to migration analysis
1 parent 2af1384 commit c5b585c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

content/binary-api.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ final class binaryAPIAccessor extends scala.annotation.StaticAnnotation
182182

183183
#### `@binaryAPIAccessor` annotation
184184

185-
* Only valid on `def`, `val`, `lazy val`, `var`, `object`, and `given`.
186-
* A public accessor will be generated for the annotated definition. This accessor will be named `<fullClassName>$$inline$<definitionName>`.
187-
* If the public accessor is in an object, the accessor will be named `inline$<definitionName>`.
185+
This annotation is only valid on `def`, `val`, `lazy val`, `var`, `object`, and `given`.
186+
187+
A public accessor will be generated for the annotated definition. This accessor will be named `<fullClassName>$$inline$<definitionName>`. If the public accessor is in an object, the accessor will be named `inline$<definitionName>`. These names where chosen to minimize the complexity of migrating from automatically generates accessors in inline methods to `@binaryAPIAccessor` (see [Gist](https://gist.github.com/nicolasstucki/003f7293941836b08a0d53dbcb913e3c)).
188188

189189
#### Inline
190190

@@ -236,5 +236,6 @@ This would simplify the system and the user interaction with this feature. The d
236236

237237
* Proof of concept: [https://github.com/lampepfl/dotty/pull/16992](https://github.com/lampepfl/dotty/pull/16992)
238238
* Initial discussions: [https://github.com/lampepfl/dotty/issues/16983](https://github.com/lampepfl/dotty/issues/16983)
239+
* Community migration analysis: [Gist](https://gist.github.com/nicolasstucki/003f7293941836b08a0d53dbcb913e3c)
239240

240241
<!-- ## FAQ -->

0 commit comments

Comments
 (0)