oxc/crates/oxc_parser/src/lexer
overlookmotel 19577709db
Remove redundant code from lexer (#1850)
Just removes a couple of lines of redundant code from the lexer.

A note on the 2nd one:

```rs
let mut builder = AutoCow::new(lexer);
let c = lexer.consume_char();
builder.push_matching(c);
```

`push_matching()` is a no-op unless
`force_allocation_without_current_ascii_char()` has already been called.
Here the `AutoCow` has just been freshly created, so we know it hasn't.
2023-12-29 10:07:21 +08:00
..
kind.rs chore(lexer): document the accessor keyword 2023-12-14 12:55:55 +08:00
mod.rs Remove redundant code from lexer (#1850) 2023-12-29 10:07:21 +08:00
number.rs feat: handle UnaryOpsWithBigInt (#475) 2023-06-25 22:37:36 +08:00
string_builder.rs chore: remove some unused code 2023-04-17 23:25:57 +08:00
token.rs refactor: improve code coverage a little bit 2023-08-25 23:07:14 +08:00
trivia_builder.rs perf(parser): lazily build trivia map instead of build in-place (#903) 2023-09-12 23:23:56 +08:00