Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consider side-effects of getters and setters when tracking property r…
…ead/writes in `RemoveUnusedCode`. Previously we could assume that if a property was never read it never needed to be written to. The possibility of a setter being assigned to undermines this assumption. Additionally, assumptions were being made about when parts of expressions were implicitly safe to remove. The possibility that getters could have side-effects changes this. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=258450431
- Loading branch information
Showing
4 changed files
with
422 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.