diff --git a/crates/oxc_parser/src/lexer/byte_handlers.rs b/crates/oxc_parser/src/lexer/byte_handlers.rs index 901806bc7ad19..fa88842794504 100644 --- a/crates/oxc_parser/src/lexer/byte_handlers.rs +++ b/crates/oxc_parser/src/lexer/byte_handlers.rs @@ -12,6 +12,9 @@ impl Lexer<'_> { /// * Lexer must not be at end of file. /// * `byte` must be next byte of source code, corresponding to current position of `lexer.source`. /// * Only `BYTE_HANDLERS` for ASCII characters may use the `ascii_byte_handler!()` macro. + // `#[inline(always)]` to ensure is inlined into `read_next_token` + #[expect(clippy::inline_always)] + #[inline(always)] pub(super) unsafe fn handle_byte(&mut self, byte: u8) -> Kind { // SAFETY: Caller guarantees to uphold safety invariants unsafe { BYTE_HANDLERS[byte as usize](self) }