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

Split off parts of single pass compiler #5526

Conversation

keyboardDrummer
Copy link
Member

Description

How has this been tested?

  • No additional testing needed

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

MikaelMayer
MikaelMayer previously approved these changes Jun 4, 2024
Copy link
Member

@MikaelMayer MikaelMayer left a comment

Choose a reason for hiding this comment

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

If you could address my point that'd be great, however, it's not mandatory for this PR.

var wElse = EmitBlock(wr);
EmitAbsurd("unreachable alternative", wElse);

} else if (stmt is WhileStmt) {
Copy link
Member

Choose a reason for hiding this comment

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

While you're at it and this is a refactoring, could you use your IDE to convert this chain of if-else into a switch statement? It will make debugging much easier.

Copy link
Member Author

Choose a reason for hiding this comment

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

sure. I'll do it in the follow-up, so I don't have to do it twice.

@keyboardDrummer keyboardDrummer enabled auto-merge (squash) June 4, 2024 13:44
@keyboardDrummer keyboardDrummer merged commit a748799 into dafny-lang:master Jun 4, 2024
21 checks passed
@keyboardDrummer keyboardDrummer deleted the splitOffPartsOfSinglePassCompiler branch June 5, 2024 08:04
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