Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1591)

Unified Diff: test/comments/functions.unit

Issue 2196863002: Format parameter lists with trailing commas like argument lists. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/comments/functions.unit
diff --git a/test/comments/functions.unit b/test/comments/functions.unit
index b2d0bc91d33ee26ebc20df1376dd48cca204440e..00c235b2dc6e827003e32724a1291b4dc207bebe 100644
--- a/test/comments/functions.unit
+++ b/test/comments/functions.unit
@@ -126,4 +126,21 @@ main() {
<<<
main() {
// comment
+}
+>>> comment before "]" with trailing comma
+function([parameter,/* c */]) {;}
+<<<
+function([
+ parameter,
+ /* c */
+]) {
+ ;
+}
+>>> comment before ")" with trailing comma
+function([parameter,]/* c */) {;}
+<<<
+function([
+ parameter,
+] /* c */) {
+ ;
}
« lib/src/source_visitor.dart ('K') | « pubspec.yaml ('k') | test/whitespace/functions.unit » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698