-
Notifications
You must be signed in to change notification settings - Fork 112
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
Isolate path refactorings #969
Isolate path refactorings #969
Conversation
This reverts commit 09093a2.
impl.Blocks.AddRange(implRefinementCheckingBlocks); | ||
foreach (var block in implRefinementCheckingBlocks) { | ||
impl.Blocks.Add(block); | ||
} |
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.
Why is this preferred?
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.
AddRange
does not exist on IList
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.
Ah damn, feels like a ripe opportunity for an extension method :P
[Rep] | ||
[ElementsPeer] | ||
public List<Cmd> /*!*/ Cmds; |
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.
Better because simpler? Technically we're losing the contract.
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.
TBH I don't value the nullability contracts. It would be simple to add them by adding #nullable enable
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.
Assuming this is only renaming and formatting?
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.
There's also conversion to a switch statement, and possibly other fully automated Rider refactorings such as invert if
Changes
Testing
No additional tests needed