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

Unified Diff: packages/dart_style/test/splitting/parameters.unit

Issue 2990843002: Removed fixed dependencies (Closed)
Patch Set: Created 3 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: packages/dart_style/test/splitting/parameters.unit
diff --git a/packages/dart_style/test/splitting/parameters.unit b/packages/dart_style/test/splitting/parameters.unit
index 56d43f249fd1ec1c6f19b309f4c9c617d926cec4..5ac592d083f40458869022972c2fab00ccc8acc3 100644
--- a/packages/dart_style/test/splitting/parameters.unit
+++ b/packages/dart_style/test/splitting/parameters.unit
@@ -13,4 +13,34 @@ method(int firstArgument, int argumentTwo) => "very long body that must wrap";
<<<
method(int firstArgument,
int argumentTwo) =>
- "very long body that must wrap";
+ "very long body that must wrap";
+>>> split before "covariant" (skip: published version of analyzer doesn't support 'covariant yet')
+class A {
+ longMethod(covariant parameterNameHere) {}
+}
+<<<
+class A {
+ longMethod(
+ covariant parameterNameHere) {}
+}
+>>> split before "covariant" with multiple parameters (skip: published version of analyzer doesn't support 'covariant yet')
+class A {
+ longMethod(covariant first, second, covariant int third(parameter), fourth) {}
+}
+<<<
+class A {
+ longMethod(
+ covariant first,
+ second,
+ covariant int third(parameter),
+ fourth) {}
+}
+>>> never split after "covariant" (at least for now) (skip: published version of analyzer doesn't support 'covariant yet')
+class A {
+ longMethod(covariant int veryLongParameterNameWow) {}
+}
+<<<
+class A {
+ longMethod(
+ covariant int veryLongParameterNameWow) {}
+}
« no previous file with comments | « packages/dart_style/test/splitting/parameters.stmt ('k') | packages/dart_style/test/splitting/statements.stmt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698