mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
refactor(transformer/class-properties): #[inline(always)] on assert_expr_neither_parenthesis_nor_typescript_syntax (#7802)
Follow-on after #7795. Add `#[inline(always)]` to this function which is no-op in release mode, to make absolutely sure it gets optimized out in full.
This commit is contained in:
parent
2964a61546
commit
3cdc47cb0d
1 changed files with 3 additions and 1 deletions
|
|
@ -56,7 +56,9 @@ pub(super) fn create_underscore_ident_name<'a>(ctx: &mut TraverseCtx<'a>) -> Ide
|
|||
ctx.ast.identifier_name(SPAN, Atom::from("_"))
|
||||
}
|
||||
|
||||
#[inline]
|
||||
// `#[inline(always)]` because this is a no-op in release mode
|
||||
#[expect(clippy::inline_always)]
|
||||
#[inline(always)]
|
||||
pub(super) fn assert_expr_neither_parenthesis_nor_typescript_syntax(
|
||||
expr: &Expression,
|
||||
path: &PathBuf,
|
||||
|
|
|
|||
Loading…
Reference in a new issue