oxc/crates/oxc_parser
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
..
examples chore(clippy): enable undocumented_unsafe_blocks 2023-10-16 15:18:14 +08:00
src refactor(parser): remove TokenValue::RegExp from Token (#1926) 2024-01-08 13:48:52 +08:00
Cargo.toml chore(deps): bump the dependencies group with 11 updates (#1865) 2024-01-01 08:06:33 +00:00