oxc/crates/oxc_ast
Boshen 08438e04ba
refactor(parser): remove TokenValue::RegExp from Token (#1926)
This PR is part of #1880.

`Token` size is reduced from 48 to 40 bytes.

To reconstruct the regex pattern and flags within the parser , the regex
string is
re-parsed from the end by reading all valid flags.

In order to make things work nicely, the lexer will no longer recover
from a invalid regex.
2024-01-08 13:48:52 +08:00
..
src refactor(parser): remove TokenValue::RegExp from Token (#1926) 2024-01-08 13:48:52 +08:00
Cargo.toml Release crates v0.4.0 2023-12-08 17:20:37 +08:00