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

fix(blocks): correct the callType_ of procedures_defreturn #5974

Merged
merged 1 commit into from
Mar 3, 2022

Conversation

gpfernandezflorio
Copy link
Contributor

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide

The details

Resolves

#5972

Proposed Changes

The field callType_ was defined as 'procedures_callnoreturn' in PROCEDURE_DEF_COMMON.
Now it is defined separately in procedures_defnoreturn and in procedures_defreturn so each one defines it's own value for it.

Behavior Before Change

As shown in #5972, when selecting the option to create a caller of a returning procedure, the result was a procedures_callnoreturn block.

Behavior After Change

Now a procedures_callreturn is created.

Reason for Changes

To fix the problem.

Test Coverage

Tested on:
Desktop Chrome v98.0.4758.102 (Windows 11)

Copy link
Contributor

@cpcallen cpcallen left a comment

Choose a reason for hiding this comment

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

Oh, nice catch. This was totally my fault: when factoring out the common parts of the two blocks in PR #5736 I somehow failed to notice that they had different values. Thanks for spotting the problem and providing the correct fix!

@cpcallen cpcallen changed the title fix: change the field callType_ of procedures_defreturn fix(blocks): correct the callType_ of procedures_defreturn Mar 3, 2022
@cpcallen cpcallen merged commit b34db5b into google:develop Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong type of block created with context menu option "create 'do something'"
2 participants