Skip to content

Commit

Permalink
style(transformer/private-methods): rename var (#8397)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
overlookmotel committed Jan 10, 2025
1 parent 07edf74 commit 0a1ffc0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a1ffc0

Please sign in to comment.