Skip to content

Commit 28bdd86

Browse files
committed
perf(semantic): inline SemanticBuilder::pop_ast_node
1 parent 8190f3a commit 28bdd86

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/oxc_semantic/src/builder.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ impl<'a> SemanticBuilder<'a> {
313313
self.record_ast_node();
314314
}
315315

316+
#[inline]
316317
fn pop_ast_node(&mut self) {
317318
self.current_node_id = self.nodes.parent_id(self.current_node_id);
318319
}
@@ -353,6 +354,7 @@ impl<'a> SemanticBuilder<'a> {
353354
}
354355

355356
/// Is the current scope in strict mode?
357+
#[inline]
356358
pub(crate) fn strict_mode(&self) -> bool {
357359
self.current_scope_flags().is_strict_mode()
358360
}

0 commit comments

Comments
 (0)