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

Should Pyjami modify usages in strings? (Bug or feature request?) #7

Open
tslmy opened this issue Dec 7, 2022 · 0 comments
Open

Should Pyjami modify usages in strings? (Bug or feature request?) #7

tslmy opened this issue Dec 7, 2022 · 0 comments

Comments

@tslmy
Copy link
Collaborator

tslmy commented Dec 7, 2022

If we want Pyjami to refrain from changing "a.b.Symbol" to "c.d.Symbol", then we have to consider the following case:

"a.b.Symbol".equals(a.b.Symbol)

should be modified to:

"a.b.Symbol".equals(c.d.Symbol)

Awareness of whether the current character is in a string is not something that regexp can catch.

Consider using a tool like comby.

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

No branches or pull requests

1 participant