-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add standard definitions on Tasty reflect #4895
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
Add standard definitions on Tasty reflect #4895
Conversation
dd34566
to
6d96851
Compare
Based on scala.reflect
6d96851
to
ad63d93
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.
Otherwise, LGTM
|
||
object FromSymbol { | ||
trait FromSymbol { tasty: TastyImpl => |
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.
It seems tasty: TastyImpl
is not used in the implementation? What's the motivation to change from object
to trait
?
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 change is not needed, I will revert it
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.
Reverted
*/ | ||
trait StandardTypes { | ||
/** The type of primitive type `Unit`. */ | ||
def UnitTpe: Type |
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.
For readability, I prefer UnitType
instead of UnitTpe
. The same for the other names.
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.
Changed
Based on scala.reflect