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

Add block-pass mutations #1047

Merged
merged 1 commit into from
Sep 6, 2020
Merged

Add block-pass mutations #1047

merged 1 commit into from
Sep 6, 2020

Conversation

dgollahon
Copy link
Collaborator

  • Adds foo(&method(:bar)) -> foo(&public_method(:bar)) and similar mutations.

Comment on lines +187 to +188
mutation 'foo(&nil).baz {}'
mutation 'foo(&self).baz {}'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We could optionally skip &nil and &self since I think they are unlikely to yield alives but they are technically valid.

Copy link
Owner

Choose a reason for hiding this comment

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

I think this skip is valid and should be done in a followup. Does not block this PR.

Copy link
Owner

Choose a reason for hiding this comment

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

To elaborate on why: They are "static" expressions. The outcome of &nil and &self is known ahead of time to not be useful.

- Adds `foo(&method(:bar))` -> `foo(&public_method(:bar))` and similar mutations.
@mbj mbj self-assigned this Sep 6, 2020
@mbj mbj added the mutation label Sep 6, 2020
@mbj mbj merged commit 3f2fdf0 into master Sep 6, 2020
@mbj mbj deleted the add-block-pass-mutations branch September 6, 2020 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants