Skip to content

Fix #8521: Remove PackageDef and use Symbol directly #9913

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 1 commit into from
Sep 29, 2020

Conversation

nicolasstucki
Copy link
Contributor

PackageDef was originally added to try to encode trees in the API without the use of symbols. Now that we have symbols all the package def logic is redundant.
At the time we assumed that we would be able to have a tree for all Symbol, but this has not been the case since the introduction of NoSymbol.
Now we handle the tree of a package def the same way we did the one of a NoSymbol.

  • Remove PackageDef
  • Add members method on Symbol
  • Disallow package symbols in Symbol.tree as done with NoSymbol

@nicolasstucki nicolasstucki self-assigned this Sep 29, 2020
PackageDef was originally added to try to encode trees in the API without the use of symbols. Now that we have symbols all the package def logic is redundant.
At the time we assumed that we would be able to have a tree for all Symbol, but this has not been the case since the introduction of NoSymbol.
Now we handle the `tree` of a package def the same way we did the one of a NoSymbol.

* Remove `PackageDef`
* Add `members` method on `Symbol`
* Disallow package symbols in `Symbol.tree` as done with `NoSymbol`
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.

LGTM

@nicolasstucki nicolasstucki marked this pull request as ready for review September 29, 2020 12:15
@nicolasstucki nicolasstucki merged commit be6bcaf into scala:master Sep 29, 2020
@nicolasstucki nicolasstucki deleted the fix-#8521 branch September 29, 2020 13:23
@Kordyjan Kordyjan added this to the 3.0.0 milestone Aug 2, 2023
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.

3 participants