pub fn replace_ident<T>(node: &mut T, from: Id, to: &Ident)where
    T: for<'any> VisitMutWith<IdentReplacer<'any>>,
Expand description

Replace all from in expr with to.

Usage

replace_ident(&mut dec.expr, cls_name.to_id(), alias);