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

Unified Diff: packages/dart_style/test/splitting/type_arguments.stmt

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 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: packages/dart_style/test/splitting/type_arguments.stmt
diff --git a/packages/dart_style/test/splitting/type_arguments.stmt b/packages/dart_style/test/splitting/type_arguments.stmt
new file mode 100644
index 0000000000000000000000000000000000000000..f89429f083c2fa589404097410f3285777c0d8a1
--- /dev/null
+++ b/packages/dart_style/test/splitting/type_arguments.stmt
@@ -0,0 +1,38 @@
+40 columns |
+>>> all fit on one line
+new Foo<A,B,C,D>();
+<<<
+new Foo<A, B, C, D>();
+>>> prefer to split between args even when they all fit on next line
+new LongClassName<First, Second, Third>();
+<<<
+new LongClassName<First, Second,
+ Third>();
+>>> split before first if needed
+new LongClassName<FirstTypeArgumentIsLong, Second>();
+<<<
+new LongClassName<
+ FirstTypeArgumentIsLong, Second>();
+>>> split in middle if fit in two lines
+new LongClassName<First, Second, Third, Fourth, Fifth, Sixth, Seventh>();
+<<<
+new LongClassName<First, Second, Third,
+ Fourth, Fifth, Sixth, Seventh>();
+>>> split one per line if they don't fit in two lines
+new LongClassName<First, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth>();
+<<<
+new LongClassName<
+ First,
+ Second,
+ Third,
+ Fourth,
+ Fifth,
+ Sixth,
+ Seventh,
+ Eighth>();
+>>> prefers to not split at type arguments
+new SomeClass<
+ TypeArgument>(valueArgument);
+<<<
+new SomeClass<TypeArgument>(
+ valueArgument);
« no previous file with comments | « packages/dart_style/test/splitting/strings.stmt ('k') | packages/dart_style/test/splitting/type_parameters.unit » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698