Closed gpetiot closed 8 months ago
I tried to split the AST change away from the formatting change, but it runs too deep. I tried to minimize the diff as much as I could instead, and I added a changelog entry for the normalizations and for taking into account the break-colon
option.
Makes #2401 easier.
@Julow some normalizations have been undone (see
js_source.ml
), but the result is closer, and some indentation has to be fixed, but this tremendously simplifies the formatting, and removes the calls toSugar.fun_
forPexp_newtype
and forfmt_class_field_kind
.object.ml.ref
can be removed once we fixed the regressionsargs_typ_strict_binding
can be renamedargs_typ_strict_binding
(we finally covered every case)If you have the time to have a look at the indentation that would be very helpful!