mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 12:51:57 +00:00
This adds a separate byte handler to the lexer for byte values which should never be encountered: 1. UTF-8 continuation bytes (i.e. middle of a multi-byte UTF-8 byte sequence). 2. Bytes values which are illegal in valid UTF-8 strings. At present, this function is impossible to reach, because `std::str::Chars` ensures the next byte is always the *start* of a valid UTF-8 byte sequence. But later changes I intend introducing unsafe code will make it possible (but highly undesirable!). In the meantime, I don't think it does any harm to handle this case. |
||
|---|---|---|
| .. | ||
| js | ||
| jsx | ||
| lexer | ||
| ts | ||
| context.rs | ||
| cursor.rs | ||
| diagnostics.rs | ||
| lib.rs | ||
| list.rs | ||
| state.rs | ||