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

Remove 'readonly' when adding 'static' #6679

Merged
merged 1 commit into from
Jun 8, 2023

Conversation

sharwell
Copy link
Member

@sharwell sharwell commented Jun 8, 2023

No description provided.

@sharwell sharwell requested a review from a team as a code owner June 8, 2023 19:20
if (!oldModifiers.IsReadOnly)
return rewrittenNode;

return syntaxGenerator.WithModifiers(rewrittenNode, oldModifiers.WithIsReadOnly(false));
Copy link
Member

Choose a reason for hiding this comment

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

would be nice if this did the above check anyways. but i dont' mind how this is written.

Copy link
Member Author

Choose a reason for hiding this comment

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

➡️ Simplified this after checking the implementation of WithModifiers

@sharwell sharwell enabled auto-merge June 8, 2023 19:39
@sharwell sharwell merged commit 2f0301e into dotnet:main Jun 8, 2023
11 checks passed
@github-actions github-actions bot added this to the vNext milestone Jun 8, 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.

None yet

2 participants