-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disallow Method.from_json(None). Removing concept of "leaf" method
Summary: Currently, `Method.from_json(None)` returns `Method("leaf")` which is strange. If a method doesn't exist, it doesn't exist. "Leaf" is not a method. This diff replaces "leaf" methods with `Optional[Method]`. In most cases, the method (usually the callee) should not be `None` anyway, otherwise the analysis is emitting a bad json. Reviewed By: anwesht Differential Revision: D51187701 fbshipit-source-id: 8f5a0b92b3e1475b5751612ddaad961e32bad8c2
- Loading branch information
1 parent
1d83cdc
commit ecd741b
Showing
2 changed files
with
20 additions
and
15 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