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

Variable Inline Fixes: Reorder and Add Tests #597

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

Conversation

Adarsh-NP
Copy link
Collaborator

@Adarsh-NP Adarsh-NP commented Sep 5, 2023

This PR fixes some variable inline issues observed when the tooling was used to produce diffs. Also adds new tests to ensure correctness. Please refer to tests to understand the scenarios better.

Reason for reordering: It seems that replace_identifier_with_value was getting executed before replace_self_identifier_with_value. One of the constraints of replace_identifier_with_value is to not replace the variable if it used in self expression (self.x) manner due to which it wasn't getting executed at all. Changing the order seems to have solved this without breaking anything.

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.

None yet

1 participant