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

support auto fix #38

Open
sanposhiho opened this issue Jun 8, 2021 · 0 comments
Open

support auto fix #38

sanposhiho opened this issue Jun 8, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@sanposhiho
Copy link
Owner

sanposhiho commented Jun 8, 2021

let's delete wasted assignment statements automatically

  • We can remove all wasted "re"assignments.
  • If it is not "re"assignment, but the value is never used afterwards, we can remove it.
  • If it is not "re"assignment and the value is used after assignment, we cannot remove it. So, we have to change it to Variable declarations with VarDecl. (i.e. change a := 2 to var a int)
@sanposhiho sanposhiho added the enhancement New feature or request label Jun 8, 2021
@sanposhiho sanposhiho self-assigned this Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant