pub trait Renamer: Send + Sync {
    const RESET_N: bool;
    const MANGLE: bool;

    fn new_name_for(&self, orig: &Id, n: &mut usize) -> JsWord;

    fn preserved_ids_for_module(&mut self, _: &Module) -> FxHashSet<Id> { ... }
    fn preserved_ids_for_script(&mut self, _: &Script) -> FxHashSet<Id> { ... }
}

Required Associated Constants

Should reset n to 0 for each identifier?

It should be true if you expect lots of collisions

Required Methods

Should increment n.

Provided Methods

Implementors