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

Improve the pattern matching refactoring #1964

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gzsombor
Copy link
Contributor

@gzsombor gzsombor commented Jan 23, 2025

Check if the smart casting can be used in deeper parts of the AST, not just directly as the first expression, which is surprisingly common.

What it does

Improve the logic which tries to locate casts that can be eliminated with pattern matching

How to test

Run the refactoring on a bigger codebase

Author checklist

Check if the smart casting can be used in deeper parts of the AST,
not just directly as the first expression, which is surprisingly common.
@gzsombor
Copy link
Contributor Author

Could you please have a look on it @jjohnstn ? I think you are the most familiar with this code that I tried to change.

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.

1 participant