Skip to content

Use symbol instead of definition tree in TASTy reflect #4991

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
merged 6 commits into from
Aug 24, 2018

Conversation

nicolasstucki
Copy link
Contributor

@nicolasstucki nicolasstucki commented Aug 22, 2018

  • Move operations from Definition to Symbol to avoid unnecessary loading of trees
  • Return Symbol instead of Definition avoid unnecessary loading of trees
  • Use operations on Symbol

@nicolasstucki nicolasstucki self-assigned this Aug 22, 2018
@nicolasstucki nicolasstucki force-pushed the use-tasty-reflect-symbols branch from 1ca6384 to a2a18d3 Compare August 23, 2018 10:26
@nicolasstucki nicolasstucki force-pushed the use-tasty-reflect-symbols branch from a2a18d3 to 2ee909f Compare August 23, 2018 11:04
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.

Vive les symboles 👍 LGTM

def isEmpty: Boolean = symbol eq NoSymbol
def localContext(implicit ctx: Context): Context = ctx.withOwner(symbol)

def isEmpty(implicit ctx: Context): Boolean = symbol eq NoSymbol
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we rename it to exists? Not important, somehow I feel exists is more friendly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Renamed

@nicolasstucki nicolasstucki merged commit a8818cc into scala:master Aug 24, 2018
@allanrenucci allanrenucci deleted the use-tasty-reflect-symbols branch August 24, 2018 09:12
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