mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
refactor(codegen): rename vars (#5222)
Rename function params in default methods of `Codegen`. Makes no material difference, just nicer hints in IDE.
This commit is contained in:
parent
8109ed046d
commit
d4c3778e02
1 changed files with 4 additions and 2 deletions
|
|
@ -18,11 +18,13 @@ use crate::{
|
||||||
};
|
};
|
||||||
|
|
||||||
pub trait Gen {
|
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 {
|
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>
|
impl<'a, T> Gen for Box<'a, T>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue