dart_style icon indicating copy to clipboard operation
dart_style copied to clipboard

`dart format`: comment on return of arrow function

Open fishythefish opened this issue 1 year ago • 1 comments

In this CL, dart format produces the following:

List<E> _toListGrowable() =>
// slice(0) is slightly faster than slice()
JSArray<E>.markGrowable(JS('', '#.slice(0)', this));

It used to be formatted like this:

List<E> _toListGrowable() =>
    // slice(0) is slightly faster than slice()
    JSArray<E>.markGrowable(JS('', '#.slice(0)', this));

cc @rakudrama

fishythefish avatar Mar 18 '25 20:03 fishythefish

Duplicate of https://github.com/dart-lang/dart_style/issues/1645

Reprevise avatar Mar 25 '25 15:03 Reprevise