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

Implement analyzer/fixer: remove unnecessary Call keyword from Call statement #73233

Closed
wants to merge 3 commits into from

Conversation

tats-u
Copy link

@tats-u tats-u commented Apr 25, 2024

Fixes #71818

Mandatory:

  • Implement the same level as RemoveUnnecessaryByVal

Backlog:

  • Support FixAll
  • Support CodeCleanUp
  • Assign a dedicated code style option name

@tats-u tats-u requested a review from a team as a code owner April 25, 2024 14:48
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Apr 25, 2024
@tats-u tats-u changed the title Implement analyzer/fixer: remove unnecessary call Implement analyzer/fixer: remove unnecessary Call statement Apr 25, 2024
@tats-u tats-u changed the title Implement analyzer/fixer: remove unnecessary Call statement Implement analyzer/fixer: remove unnecessary Call statement Apr 25, 2024
@dotnet-policy-service dotnet-policy-service bot added the Community The pull request was submitted by a contributor who is not a Microsoft employee. label Apr 25, 2024
@tats-u tats-u changed the title Implement analyzer/fixer: remove unnecessary Call statement Implement analyzer/fixer: remove unnecessary Call keyword from Call statement Apr 25, 2024
@tats-u tats-u marked this pull request as draft April 25, 2024 15:13
@CyrusNajmabadi
Copy link
Member

Not sure if we would take this for Roslyn itself. Seems like a good candidate for a community driven set of vb migration helpers though!

@tats-u
Copy link
Author

tats-u commented Apr 26, 2024

That doesn't look like good news.
As you may think, its priority may be lower than ByVal removal.
However, the official document doesn't recommend to abuse Call:
https://learn.microsoft.com/en-us/dotnet/visual-basic/language-reference/statements/call-statement#remarks
Therefore I think we can recommend users to remove redundant Calls not only in reference but also in editors.

@CyrusNajmabadi
Copy link
Member

@tats-u I'm simply saying these might be better as a package you maintain yourself.

@tats-u
Copy link
Author

tats-u commented Apr 27, 2024

@CyrusNajmabadi I wouldn't work on this PR anymore if you(r team) had no plan to make such kind of Analyzer/Codefix (Lighten the colors of unnecessary Call keywords) in the original Roslyn, VS, and online rich editors (and possibly VS Code in the future).
I wonder who other than your team can keep such a huge project well maintained and popular.
If your team hasn't decided to this PR has even a little chance to be merged, I'll continue to try to make it pass all the tests in CI.

@CyrusNajmabadi
Copy link
Member

I wonder who other than your team

Lots of people maintain nuget packages. :-)

But roslyn isn't a place where every but if functionality goes. This has a coat for us as well. So the benefit needs to be there to justify it.

Given 30+ years working with vb, and only a single person asking for this, it really sounds like this is a feature for you, Rather than something significant for the entire community.

If you're this passionate about producing solutions for your problems, that's great. But that doesn't really translate to us prioritizing it the same way.

@tats-u
Copy link
Author

tats-u commented May 6, 2024

only a single person asking for this, it really sounds like this is a feature for you, Rather than something significant for the entire community.

Note most VB users won't visit this repo (or vblang repo), and has given up for this feature or raising up their voice for new ones, not only new language ones (announced since .NET 5) but also other ones.

Since your team chose to reject this feature and other new VB-dedicated just-nice-to-have ones even in Analyzer, I'll stop improving this code and focus on C# and other repos. I'll treat VB for .NET as like the IE mode and the Trident engine for Edge.

@tats-u tats-u closed this May 6, 2024
@CyrusNajmabadi
Copy link
Member

Sounds good. Take it easy :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee. untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[VB] Remove redundant Call
2 participants