Skip to content
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

Extract semanticDB for lifted definitions #21856

Merged
merged 3 commits into from
Oct 30, 2024
Merged

Conversation

natsukagami
Copy link
Contributor

Fix #19970

  • Extract synthetic definitions in a lifted block.

    We try to find blocks whose statements are all synthetic definitions, and
    extract the rhs of all such definitions.

  • Add tests for occurences in lifting

  • Clean up EtaExpansion lifting functions

Comment on lines -2889 to -2890
local0 => val local c$1: Int
local1 => val local b$1: Int @uncheckedVariance
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are lifted arguments from the recursive call in tests/semanticdb/expect/NamedApplyBlock.scala. Not sure if we want to include them in the symbols list?

Copy link
Contributor

Choose a reason for hiding this comment

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

I would say no. Doesn't seem to be too useful.

Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks for doing this!

@natsukagami natsukagami merged commit 7d8f0d4 into scala:main Oct 30, 2024
29 checks passed
@natsukagami natsukagami deleted the fix-19970 branch October 30, 2024 10:17
KacperFKorban pushed a commit to dotty-staging/dotty that referenced this pull request Nov 20, 2024
KacperFKorban pushed a commit to dotty-staging/dotty that referenced this pull request Nov 29, 2024
@WojciechMazur WojciechMazur added this to the 3.6.3 milestone Dec 9, 2024
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.

No Semanticdb generated for lifted args
3 participants