Function swc_ecma_transforms::fixer[][src]

pub fn fixer(
    comments: Option<&'a (dyn Comments + 'a)>
) -> impl Fold + VisitMut + 'a
Expand description

Fixes ast nodes before printing so semantics are preserved.

You don’t have to bother to create appropriate parenthesis. The pass will insert parenthesis as needed. In other words, it’s okay to store a * (b + c) as Bin { a * Bin { b + c } }.