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

Isolate path refactorings #969

Merged

Conversation

keyboardDrummer
Copy link
Collaborator

@keyboardDrummer keyboardDrummer commented Oct 22, 2024

Changes

Testing

No additional tests needed

@keyboardDrummer keyboardDrummer enabled auto-merge (squash) October 22, 2024 14:20
Comment on lines -548 to +546
impl.Blocks.AddRange(implRefinementCheckingBlocks);
foreach (var block in implRefinementCheckingBlocks) {
impl.Blocks.Add(block);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this preferred?

Copy link
Collaborator Author

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

Copy link
Contributor

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

Comment on lines +12 to +14
[Rep]
[ElementsPeer]
public List<Cmd> /*!*/ Cmds;
Copy link
Contributor

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.

Copy link
Collaborator Author

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

Copy link
Contributor

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?

Copy link
Collaborator Author

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

@keyboardDrummer keyboardDrummer merged commit 7e957c1 into boogie-org:master Oct 22, 2024
5 checks passed
@keyboardDrummer keyboardDrummer deleted the isolatePathRefactorings branch October 22, 2024 20:58
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.

2 participants