-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate away from legacy Thrift compiler API
Summary: `parse_and_get_program` is a legacy API that has a number of problems: * It takes stringly-typed arguments, most of which are ignored. * It may return an invalid AST (missing includes, unresolved types) which is not obvious at the call sites. * It claims to not run mutators which doesn't make sense since mutation is an important part of semantic analysis and should be run e.g. for type inference. Migrate two of its few uses to `parse_ast` in preparation for removal. Reviewed By: rmakheja Differential Revision: D68496448 fbshipit-source-id: 8479a1a566d3d037ead19448a8b06cfc4a088a71
- Loading branch information
1 parent
91810fe
commit c249a97
Showing
4 changed files
with
56 additions
and
18 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
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