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 sorbet method matching #1270

Merged
merged 2 commits into from
Oct 18, 2021
Merged

Add sorbet method matching #1270

merged 2 commits into from
Oct 18, 2021

Conversation

mbj
Copy link
Owner

@mbj mbj commented Oct 18, 2021

  • Signatures with sorbet-runtime enabled wrap the method into a Proc.
  • This proc hides the original source location, which would, by default
    not enable mutant to find the method source.
  • Using sorbet private API to uncover the original method prevents this
    issue.

@mbj mbj force-pushed the add/sorbet-method-matching branch 3 times, most recently from e78f960 to 11ab768 Compare October 18, 2021 04:19
@mbj mbj changed the title [WIP] Add sorbet method matching Add sorbet method matching Oct 18, 2021
@mbj mbj self-assigned this Oct 18, 2021
@mbj mbj force-pushed the add/sorbet-method-matching branch 3 times, most recently from ef97a48 to dd21ff9 Compare October 18, 2021 04:27
@mbj mbj force-pushed the add/sorbet-method-matching branch 3 times, most recently from 302597f to db85e90 Compare October 18, 2021 04:45
* Signatures with sorbet-runtime enabled wrap the method into a Proc.
* This proc hides the original source location, which would, by default
  not enable mutant to find the method source.
* Using sorbet private API to uncover the original method prevents this
  issue.
@mbj mbj force-pushed the add/sorbet-method-matching branch from db85e90 to 2e366a7 Compare October 18, 2021 04:48
@mbj mbj merged commit 3645efe into main Oct 18, 2021
@mbj mbj deleted the add/sorbet-method-matching branch October 18, 2021 04:56
a clean dependency, that unless told to: Will not perform core extensions.

As mutant is a development dependency it should not be an issue for a project
that mutant itself will soonm use sorbet type checks to accelerate its

Choose a reason for hiding this comment

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

soonm 👁️

@rodrigovilina
Copy link

This is awesome, thanks @mbj !

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