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

Unified Diff: packages/dart_style/test/splitting/assignments.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
« no previous file with comments | « packages/dart_style/test/splitting/arrows.unit ('k') | packages/dart_style/test/splitting/classes.unit » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/dart_style/test/splitting/assignments.stmt
diff --git a/packages/dart_style/test/splitting/assignments.stmt b/packages/dart_style/test/splitting/assignments.stmt
new file mode 100644
index 0000000000000000000000000000000000000000..4265f22bcb89adaee8db97973af240d2a7785665
--- /dev/null
+++ b/packages/dart_style/test/splitting/assignments.stmt
@@ -0,0 +1,38 @@
+40 columns |
+>>> initializer doesn't fit one line, wrap inside, keep name
+var result = myFunction(argument * argument, argument * argument);
+<<<
+var result = myFunction(
+ argument * argument,
+ argument * argument);
+>>> initializer doesn't fit one line, wrap inside, keep name
+result = myFunction(argument, argument, argument, argument);
+<<<
+result = myFunction(argument, argument,
+ argument, argument);
+>>> wrapped initializer fits one line
+variable = longFunctionIsLoooooong(argument);
+<<<
+variable =
+ longFunctionIsLoooooong(argument);
+>>> initializer doesn't fit one line, name too long
+variable = longFunctionIsLooooooooooooooong(argument, argument);
+<<<
+variable =
+ longFunctionIsLooooooooooooooong(
+ argument, argument);
+>>> initializer doesn't fit one line, cannot be split
+variableName = thisIsReallyQuiteAVeryLongVariableName;
+<<<
+variableName =
+ thisIsReallyQuiteAVeryLongVariableName;
+>>> long function call initializer
+variableName = functionName(first, second);
+<<<
+variableName =
+ functionName(first, second);
+>>> long binary expression initializer
+variableName = argument * argument + argument;
+<<<
+variableName =
+ argument * argument + argument;
« no previous file with comments | « packages/dart_style/test/splitting/arrows.unit ('k') | packages/dart_style/test/splitting/classes.unit » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698