-
Notifications
You must be signed in to change notification settings - Fork 636
[Scala3] Add Bundle plugin #4947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
7846562
to
0b56d54
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really good, a few comments, and it seems CI isn't working so need to get that fixed.
plugin/src/main/scala-3/chisel3/internal/plugin/BundlePhase.scala
Outdated
Show resolved
Hide resolved
plugin/src/main/scala-3/chisel3/internal/plugin/BundlePhase.scala
Outdated
Show resolved
Hide resolved
plugin/src/main/scala-3/chisel3/internal/plugin/BundlePhase.scala
Outdated
Show resolved
Hide resolved
plugin/src/main/scala-3/chisel3/internal/plugin/BundlePhase.scala
Outdated
Show resolved
Hide resolved
plugin/src/main/scala-3/chisel3/internal/plugin/BundlePhase.scala
Outdated
Show resolved
Hide resolved
8c0e236
to
b107be4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good, but some nits and requests
plugin/src/main/scala-3/chisel3/internal/plugin/BundlePhase.scala
Outdated
Show resolved
Hide resolved
plugin/src/main/scala-3/chisel3/internal/plugin/BundlePhase.scala
Outdated
Show resolved
Hide resolved
plugin/src/main/scala-3/chisel3/internal/plugin/BundlePhase.scala
Outdated
Show resolved
Hide resolved
plugin/src/main/scala-3/chisel3/internal/plugin/BundlePhase.scala
Outdated
Show resolved
Hide resolved
plugin/src/main/scala-3/chisel3/internal/plugin/BundlePhase.scala
Outdated
Show resolved
Hide resolved
plugin/src/main/scala-3/chisel3/internal/plugin/BundlePhase.scala
Outdated
Show resolved
Hide resolved
plugin/src/main/scala-3/chisel3/internal/plugin/BundlePhase.scala
Outdated
Show resolved
Hide resolved
plugin/src/main/scala-3/chisel3/internal/plugin/BundlePhase.scala
Outdated
Show resolved
Hide resolved
final version should handle both phases
Run Scalafmt
Update plugin file names
This was causing _elementsImpl to not get inserted correctly for anonymous Bundle instances
This is needed because Scala 3 does not support type inference for refinement types over anonymous classes
82fc2cc
to
d3417d9
Compare
plugin/src/main/scala-3/chisel3/internal/plugin/BundlePhase.scala
Outdated
Show resolved
Hide resolved
plugin/src/main/scala-3/chisel3/internal/plugin/BundlePhase.scala
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
Chisel's Bundle transform for Scala 3.
Contributor Checklist
docs/src
?Type of Improvement
Desired Merge Strategy
Release Notes
Adds Bundle plugin
Reviewer Checklist (only modified by reviewer)
3.6.x
,5.x
, or6.x
depending on impact, API modification or big change:7.0
)?Enable auto-merge (squash)
and clean up the commit message.Create a merge commit
.