mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
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:
parent
07edf74c58
commit
0a1ffc045d
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue