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

Translation for while node #218

Merged
merged 1 commit into from
Aug 26, 2024
Merged

Translation for while node #218

merged 1 commit into from
Aug 26, 2024

Conversation

egiurleo
Copy link

Closes #179

Test plan

See included automated tests.

@egiurleo egiurleo requested review from amomchilov, a team and KaanOzkan August 26, 2024 15:23
@egiurleo egiurleo self-assigned this Aug 26, 2024
test/prism_regression/while.rb Show resolved Hide resolved
Comment on lines +825 to +827
if (stmtsNode == nullptr) {
return nullptr;
}
Copy link
Author

Choose a reason for hiding this comment

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

@amomchilov How do you feel about putting a nullptr check here for all the nodes that can have empty bodies, like while?

Choose a reason for hiding this comment

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

SGTM

@amomchilov amomchilov changed the title Translation for while node Translation for while node Aug 26, 2024
@egiurleo egiurleo merged commit 866a455 into prism Aug 26, 2024
1 check passed
@egiurleo egiurleo deleted the emily/while branch August 26, 2024 16:24
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.

Implement translation for PM_WHILE_NODE
2 participants