Skip to content

Commit

Permalink
Add inliine
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Feb 7, 2024
1 parent 5dcc001 commit 119501c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/oxc_parser/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ impl<'a> ParserImpl<'a> {
///
/// Requiring a `UniquePromise` to be provided guarantees only 1 `ParserImpl` can exist
/// on a single thread at one time.
#[inline]
pub fn new(
allocator: &'a Allocator,
source_text: &'a str,
Expand Down Expand Up @@ -301,6 +302,7 @@ impl<'a> ParserImpl<'a> {
///
/// Returns an empty `Program` on unrecoverable error,
/// Recoverable errors are stored inside `errors`.
#[inline]
pub fn parse(mut self) -> ParserReturn<'a> {
let (program, panicked) = match self.parse_program() {
Ok(program) => (program, false),
Expand Down

0 comments on commit 119501c

Please sign in to comment.