swc_ecma_transforms_optimization::simplify

Function dead_branch_remover

source
pub fn dead_branch_remover(
    unresolved_mark: Mark,
) -> impl Repeated + Pass + CompilerPass + VisitMut + 'static
Expand description

Not intended for general use. Use [simplifier] instead.

Ported from PeepholeRemoveDeadCode of google closure compiler.