-
Notifications
You must be signed in to change notification settings - Fork 600
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: I noticed that `--dump-ast` was outputting AST after TS-to-Flow transpilation, and also after IIFE wrapping. I found that to be confusing, since I expect "--dump-ast" to literally print what was parsed, before any transformations have been performed on it. Move the dumping of the parsed AST earlier in the code and add a new dumping stage `--dump-transpiled-ast`, which prints the AST after the optional early transpilation to Flow and IIFE wrapping. Reviewed By: avp Differential Revision: D52149761 fbshipit-source-id: 56a83e9c42e0286faa164f0bdefe94883eaf11da
- Loading branch information
1 parent
5b803e4
commit 40748fa
Showing
7 changed files
with
27 additions
and
7 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
enum class OutputLevelKind { | ||
None, | ||
AST, | ||
TranspiledAST, | ||
TransformedAST, | ||
Sema, | ||
CFG, | ||
|
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