Function swc_ecma_transforms_base::fixer::fixer

source ·
pub fn fixer(comments: Option<&dyn Comments>) -> impl '_ + Fold + VisitMut
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 } }.