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

Improve the cases that 'simplify linq' works on #76079

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

CyrusNajmabadi
Copy link
Member

Fixes #71293

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner November 25, 2024 21:04
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Nov 25, 2024
}
list.AddRange((IEnumerable<SyntaxToken>)(accessibility switch
{
Accessibility.Internal => [InternalKeyword],
Copy link
Contributor

Choose a reason for hiding this comment

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

Accessibility.Internal

I don't feel too strongly as I don't know if this is called often enough to care, but the old code was about as readable to me and didn't need the allocations.

Copy link
Member Author

Choose a reason for hiding this comment

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

allocations here aren't an issue. this isn't aclled in any sort of hot loop.

Copy link
Contributor

@ToddGrun ToddGrun left a comment

Choose a reason for hiding this comment

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

:shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead VSCode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IDE0120 does not work in various cases (Where+Count)
2 participants