babel/packages/babel-parser
Huáng Jùnliàng acf2a10899
Faster tokenizer lookahead (#13341)
* refactor: simplify token context structure

* add benchmark

* perf: return a sub-state on tokenizer lookahead

* Update packages/babel-parser/src/tokenizer/index.js

Co-authored-by: Brian Ng <bng412@gmail.com>

* Update packages/babel-parser/src/tokenizer/index.js

Co-authored-by: Brian Ng <bng412@gmail.com>

* remove irrelevant comment

* fix: guard curPosition with isLookahead

* add test cases

Co-authored-by: Brian Ng <bng412@gmail.com>
2021-05-25 21:12:38 -04:00
..
2021-04-28 18:26:01 +02:00
2021-05-25 21:12:38 -04:00
2021-05-25 21:12:38 -04:00
2018-05-19 00:03:05 -04:00
2018-05-19 00:03:05 -04:00
2021-05-17 20:26:25 +00:00

@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