Skip to content

Commit

Permalink
Enhances PureFunctionIdentifier to understand some types of functio…
Browse files Browse the repository at this point in the history
…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
nreid260 authored and lauraharker committed Apr 11, 2019
1 parent c7f6680 commit 8e581e0
Show file tree
Hide file tree
Showing 4 changed files with 532 additions and 275 deletions.

0 comments on commit 8e581e0

Please sign in to comment.