style(transformer/private-methods): rename var (#8397)

Some types' properties have names that require `r#` escape, and we can't really avoid it. But in my view, it's preferable not to name vars `r#...` when we don't have to.
This commit is contained in:
overlookmotel 2025-01-10 01:58:42 +00:00
parent 07edf74c58
commit 0a1ffc045d

View file

@ -107,11 +107,11 @@ struct PrivateMethodVisitor<'a, 'ctx, 'v> {
impl<'a, 'ctx, 'v> PrivateMethodVisitor<'a, 'ctx, 'v> {
fn new(
r#static: bool,
is_static: bool,
class_properties: &'v mut ClassProperties<'a, 'ctx>,
ctx: &'v mut TraverseCtx<'a>,
) -> Self {
let mode = if r#static {
let mode = if is_static {
ClassPropertiesSuperConverterMode::StaticPrivateMethod
} else {
ClassPropertiesSuperConverterMode::PrivateMethod