pub fn replace_ident<T>(node: &mut T, from: Id, to: &Ident)where T: for<'any> VisitMutWith<IdentReplacer<'any>>,
Replace all from in expr with to.
from
expr
to
replace_ident(&mut dec.expr, cls_name.to_id(), alias);