Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: add parse*Literal parser routines (#13333)
* refactor: simplify parseLiteral interface * refactor: extract specific methods on parsing literals * fix: avoid StringLiteral type comparison * add test cases * fix: remove redundant node * Update packages/babel-parser/src/plugins/flow/index.js Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com> * update test fixtures * fix: refine parseLiteral typings Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>
- Loading branch information
Showing
11 changed files
with
308 additions
and
101 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
Oops, something went wrong.