Skip to content

Commit

Permalink
refactor(codegen): rename vars (#5222)
Browse files Browse the repository at this point in the history
Rename function params in default methods of `Codegen`. Makes no material difference, just nicer hints in IDE.
  • Loading branch information
overlookmotel committed Aug 26, 2024
1 parent 8109ed0 commit d4c3778
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/oxc_codegen/src/gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ use crate::{
};

pub trait Gen {
fn gen(&self, _p: &mut Codegen, _ctx: Context) {}
#[allow(unused_variables)]
fn gen(&self, p: &mut Codegen, ctx: Context) {}
}

pub trait GenExpr {
fn gen_expr(&self, _p: &mut Codegen, _precedence: Precedence, _ctx: Context) {}
#[allow(unused_variables)]
fn gen_expr(&self, p: &mut Codegen, precedence: Precedence, ctx: Context) {}
}

impl<'a, T> Gen for Box<'a, T>
Expand Down

0 comments on commit d4c3778

Please sign in to comment.