- Notifications
You must be signed in to change notification settings - Fork3.1k
Add the Tasty Reader [ci: last-only]#9109
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Merged
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
This commit is a squash of several commits to atomically add the feature:When indexing a scope for the first time to set up completers, addlazy annotations to symbols. At the end of the indexing, force the annotationsand if one is scala.annotation.internal.Child[T], add the symbol of T as asealed child. If we are not indexing statements, such as completing thea method and reading its parameters, force annotations as soon as each symbolis initialised, this is ok because the owner tree for the definition is alsoinitialised so forward references can be safely accessed.force sealed children after indexing scopecache RepeatedAnnotforce all annotations early, catching more errorsAlso force annotations for lookahead contexts.It would be good to see if perhaps we can share a single annotation cache pertasty file and force from one place.Force annotations for each new symbolAdditionally, when sequencing statements, only force after the whole sequence is indexed.Forceable annotations are now stored in and forced from the initial context.Made it more lazy to print parents of a class.If a LambdaPolyType is in a New tree, unwrap it.force annotations at end of createMemberSymbolonly make lazy annotation if we delay its evaluation
… class info.Before this, inherited members may not be visible at the point of forcing the annotationon a definition in the template.Also moved symbol cache to the initial context so that child contexts all pass to the samecache.
Inner classes can not be found with Mirror getRequiredClass, sowe should have another way to compare types to signatures, thisproposes to instead convert method signatures toSignature[ErasedTypeRef]
Read inner classes in signatures, force annotations after template parents
Fix JavaUniverseForce
lrytz approved these changesJul 15, 2020
Member
lrytz left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Absolutely outstanding work,@bishabosha. Thank you ❤️
hamzaremmal pushed a commit to hamzaremmal/scala3 that referenced this pull requestMay 2, 2025
Add the Tasty Reader [ci: last-only]
hamzaremmal pushed a commit to scala/scala3 that referenced this pull requestMay 7, 2025
Add the Tasty Reader [ci: last-only]
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading.Please reload this page.
see#8865 for original guide to reviewing (which has been copied to relevant doc comments in the code)