Skip to content

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

Merged

Conversation

nicolasstucki
Copy link
Contributor

Based on scala.reflect

@nicolasstucki nicolasstucki force-pushed the add-tasty-reflect-std-definitions branch 4 times, most recently from dd34566 to 6d96851 Compare August 6, 2018 09:14
@nicolasstucki nicolasstucki changed the title WIP Add standard definitions on Tasty reflect Add standard definitions on Tasty reflect Aug 6, 2018
Copy link
Contributor

@liufengyun liufengyun left a 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 =>
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor Author

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
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed

@nicolasstucki nicolasstucki merged commit 486b731 into scala:master Aug 8, 2018
@allanrenucci allanrenucci deleted the add-tasty-reflect-std-definitions branch August 8, 2018 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants