-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flow][autocomplete] check enclosing statement when autocompleting er…
…ror suppression in comments Summary: Autocomplete offers a special feature of returning an error suppression with the appropriate code, when invoked within a comment attached to a node that raises an error. To get this functionality in the on-demand mode of autocomplete we need to do some additional work, given that the existing context might not have the relevant error populated. To address this, when we are about to create an `Ac_comment` we also check the closest enclosing statement `stmt`, and run post-inference checks on `stmt`. Changelog: [internal] Reviewed By: SamChou19815 Differential Revision: D55053042 fbshipit-source-id: 3cad4a7423474f544c3faf2e3b232a338f985124
- Loading branch information
1 parent
8f45dae
commit 49227e3
Showing
2 changed files
with
46 additions
and
2 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