oxc/crates/oxc_parser/src
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
..
js fix(parser) fix typo in expecting_directives variable name (#1801) 2023-12-24 16:51:02 +00:00
jsx fix(parser): await in jsx expression 2023-12-19 20:23:16 +08:00
lexer Remove redundant code from lexer (#1850) 2023-12-29 10:07:21 +08:00
ts refactor(parser): report this parameter error (#1788) 2023-12-23 22:09:14 +08:00
context.rs fix(parser): false postive for "Missing initializer in const declaration" in declare + namespace (#1724) 2023-12-18 17:03:42 +08:00
cursor.rs chore(clippy): enable undocumented_unsafe_blocks 2023-10-16 15:18:14 +08:00
diagnostics.rs refactor(parser): report this parameter error (#1788) 2023-12-23 22:09:14 +08:00
lib.rs feat(parser): add preserve_parens option (default: true) (#1474) 2023-11-21 11:16:30 +08:00
list.rs fix(parser): fix crashing on empty ParenthesizedExpression with comments (#263) 2023-04-06 17:16:15 +08:00
state.rs refactor(ast): change Option<Vec> to Vec for decorators (#84) 2023-03-02 15:52:46 +08:00