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:
overlookmotel 2024-08-26 08:40:50 +00:00
parent 8109ed046d
commit d4c3778e02

View file

@ -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>