Function fixer
pub fn fixer(comments: Option<&dyn Comments>) -> impl Pass + 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 } }
.