Separate EsprimaLexer and EsprimaTokenizer.
The former now implements the same API as old Lexer, while the Tokenizer is a singleton class that loads esprima.js just once and provides the tokenizing service. Tokenizer also converts all Esprima tokens to JsDuck::Lexer kind of tokens.
Loading
Please sign in to comment