* 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>
@babel/parser
A JavaScript parser
See our website @babel/parser for more information or the issues associated with this package.
Install
Using npm:
npm install --save-dev @babel/parser
or using yarn:
yarn add @babel/parser --dev