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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing code-completion on standalone annotations #13831

Merged
merged 3 commits into from Nov 2, 2021

Conversation

ghostbuster91
Copy link
Contributor

This PR adds missing code completion for standalone annotations.

In a REPL session:

@annotation.implicitNot

The annotations themselves are a part of Modifiers object which is not a tree but rather a bag of different modifiers.
The root cause of the issue was that parser was returning an empty tree which can't have (AFAIK) any modifiers attached.
We solved that, by returning annotations tree from the Modifiers object instead of an empty tree.

Relates to #13624

The work on this PR was powered by 7th edition of issue-spree 馃帀

Co-authored-by: @spavikevik
Co-authored-by: @tgodzik
Co-authored-by: @anatoliykmetyuk

@tgodzik
Copy link
Contributor

tgodzik commented Oct 27, 2021

I created a separate PR for the other part of the issue since it's not really related #13834

Copy link
Contributor

@odersky odersky left a comment

Choose a reason for hiding this comment

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

Looks reasonable to me

ghostbuster91 and others added 2 commits November 1, 2021 07:14
Co-authored-by: Stefan Pavikevik <spavikevik@users.noreply.github.com>
Co-authored-by: Tomasz Godzik <tgodzik@users.noreply.github.com>
Co-authored-by: Anatolii Kmetiuk <anatoliykmetyuk@gmail.com>
@tgodzik tgodzik merged commit 6ac2be5 into scala:master Nov 2, 2021
@ghostbuster91 ghostbuster91 deleted the fix-13624 branch November 2, 2021 14:47
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.

None yet

5 participants