Skip to content

Fix #6720: implement extractor for function literals #6810

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 7 commits into from
Jul 5, 2019

Conversation

liufengyun
Copy link
Contributor

Fix #6720: implement extractor for function literals

Now as the encoding for function literal is a fixed invariant (#6767), we can implement an extractor for function literals.

Copy link
Contributor

@nicolasstucki nicolasstucki left a comment

Choose a reason for hiding this comment

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

8fe1d75 assumes that all lambdas are in their own block, but sometimes those blocks get flatten. I would feel uneasy adding this without the decompiler tests that we disabled.

@nicolasstucki
Copy link
Contributor

Or maybe we should make sure to enforce that shape as an invariant

@liufengyun
Copy link
Contributor Author

@nicolasstucki It's already done in #6767 by a new addition to Ycheck.

@liufengyun liufengyun merged commit bd93937 into scala:master Jul 5, 2019
@liufengyun liufengyun deleted the fix-6720 branch July 5, 2019 08:13
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.

Missing extractor for closures in Tasty Reflect
2 participants