Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Julien Richard-Foy <[email protected]>
  • Loading branch information
nicolasstucki and julienrf authored May 11, 2023
1 parent 9dab6e6 commit 7838391
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/binary-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,13 @@ final class binaryAPIAccessor extends scala.annotation.StaticAnnotation

* Only valid on `def`, `val`, `lazy val`, `var`, `object`, and `given`.
* TASTy will contain references to non-public definitions that are out of scope but `@binaryAPI`. TASTy already allows those references.
* Annotated definition will be public in the generated bytecode. Definitions should be made public as early as possible in the compiler phases, as this can remove the need to create other accessors. It should be done after we check the accessibility of references.
* The annotated definitions will be public in the generated bytecode. Definitions should be made public as early as possible in the compiler phases, as this can remove the need to create other accessors. It should be done after we check the accessibility of references.


#### `@binaryAPIAccessor` annotation

* Only valid on `def`, `val`, `lazy val`, `var`, `object`, and `given`.
* An public accessor will be generated for the annotated definition. This accessor will be named `<fullClassName>$$inline$<definitionName>`.
* A public accessor will be generated for the annotated definition. This accessor will be named `<fullClassName>$$inline$<definitionName>`.

#### Inline

Expand Down

0 comments on commit 7838391

Please sign in to comment.