New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Formatter gets confused line-wrapping nested lambdas #16378
Comments
Added this to the 1.2 milestone. |
Removed this from the 1.2 milestone. |
Marked this as blocking #16327. |
Removed this from the 1.6 milestone. |
Removed Oldschool-Milestone-1.6 label. |
This was an issue with the old formatter but not the new one. Added AssumedStale label. |
This issue has been moved to dart-lang/dart_style#304. |
Source:
main() {
barback.getAssetById(transformerAsset)
.then((_) => transformerAsset)
.catchError((e) => new AssetId(package, 'lib/$package.dart'),
test: (e) => e is AssetNotFoundException);
}
Output:
main() {
barback.getAssetById(transformerAsset).then((_) =>
transformerAsset).catchError((e) => new AssetId(package, 'lib/$package.dart'),
test: (e) => e is AssetNotFoundException);
}
I don't expect it to do as good a job line wrapping as I do, but at the very least it should stay within 80 columns.
The text was updated successfully, but these errors were encountered: