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

Unified Diff: test/whitespace/enums.unit

Issue 844653002: Format enums. Fix #120. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Created 5 years, 11 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
« lib/src/dart_formatter.dart ('K') | « test/splitting/enums.unit ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/whitespace/enums.unit
diff --git a/test/whitespace/enums.unit b/test/whitespace/enums.unit
new file mode 100644
index 0000000000000000000000000000000000000000..0d3cb7a53bd6386cef5f40d3d212257b4cbfe68f
--- /dev/null
+++ b/test/whitespace/enums.unit
@@ -0,0 +1,20 @@
+40 columns |
+>>> single
+enum Unity {ONE}
+<<<
+enum Unity { ONE }
+>>> single line
+enum Primate{BONOBO,CHIMP,GORILLA}
+<<<
+enum Primate { BONOBO, CHIMP, GORILLA }
+>>> single line trailing comma
+enum Primate{BONOBO,CHIMP,}
+<<<
+enum Primate { BONOBO, CHIMP, }
+>>> metadata
+@Awesome @Fierce("really")
+enum Primate{BONOBO,CHIMP,GORILLA}
+<<<
+@Awesome
+@Fierce("really")
+enum Primate { BONOBO, CHIMP, GORILLA }
« lib/src/dart_formatter.dart ('K') | « test/splitting/enums.unit ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698