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:
overlookmotel 2024-12-11 14:54:48 +00:00
parent 2964a61546
commit 3cdc47cb0d

View file

@ -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,