Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhances
PureFunctionIdentifier
to understand some types of functio…
…n aliasing. A particular special case is class constructors, including `super` calls. These were always considered unknown functions before, so all class instantiations were marked with side-effects. Now the indirection from class name to `"constructor" and `super` to class name is recognized. Aliasing support is also added in the general case of conditional expressions, like `&&`, `||`, and `?:`. Functions assigned values using these are known to be aliases of the leaf expressions. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=242908412
- Loading branch information