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

Side by Side Diff: pkg/analyzer/test/services/data/wrap_tests.data

Issue 381663004: Improve wrapping during formatting. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Performance fix Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 >>> list literal
2 main() {
3 List<String> values = <String>[a0123456789012345, b0123456789012345, c01234567 89012345, d0123456789012345];
4 }
5 <<<
6 main() {
7 List<String> values = <String>[
8 a0123456789012345,
9 b0123456789012345,
10 c0123456789012345,
11 d0123456789012345];
12 }
13 >>> operators
14 main() {
15 int result = a0123456789012345 * b0123456789012345 + c0123456789012345 * d0123 456789012345;
16 }
17 <<<
18 main() {
19 int result = a0123456789012345 * b0123456789012345 +
20 c0123456789012345 * d0123456789012345;
21 }
22 >>> arguments
23 main() {
24 myFunction(a0123456789012345 * b0123456789012345, c0123456789012345 * d0123456 789012345);
25 }
26 <<<
27 main() {
28 myFunction(
29 a0123456789012345 * b0123456789012345,
30 c0123456789012345 * d0123456789012345);
31 }
32 >>> arguments, nested
33 main() {
34 someFunctionOne(a012345678901234567890123456789,
35 someFunctionTwo(ba01234567890123456789, bb01234567890123456789, bc0123456789 0123456789),
36 someFunctionTwo(ca01234567890123456789, cb01234567890123456789, cc0123456789 0123456789),
37 d012345678901234567890123456789, e012345678901234567890123456789);
38 }
39 <<<
40 main() {
41 someFunctionOne(
42 a012345678901234567890123456789,
43 someFunctionTwo(
44 ba01234567890123456789,
45 bb01234567890123456789,
46 bc01234567890123456789),
47 someFunctionTwo(
48 ca01234567890123456789,
49 cb01234567890123456789,
50 cc01234567890123456789),
51 d012345678901234567890123456789,
52 e012345678901234567890123456789);
53 }
54 >>> conditions, same operator
55 main() {
56 if (a012345678901234567890123456789 || b012345678901234567890123456789 || c012 345678901234567890123456789
57 || d012345678901234567890123456789) {
58 }
59 }
60 <<<
61 main() {
62 if (a012345678901234567890123456789 ||
63 b012345678901234567890123456789 ||
64 c012345678901234567890123456789 ||
65 d012345678901234567890123456789) {
66 }
67 }
68 >>> conditions, different operators
69 main() {
70 if (a012345678901234567890123456789 && b012345678901234567890123456789 || c012 345678901234567890123456789
71 && d012345678901234567890123456789) {
72 }
73 }
74 <<<
75 main() {
76 if (a012345678901234567890123456789 && b012345678901234567890123456789 ||
77 c012345678901234567890123456789 && d012345678901234567890123456789) {
78 }
79 }
80 >>> conditional expression
81 main() {
82 MatchKind kind = element != null ? a012345678901234567890123456789 : b01234567 8901234567890123456789;
83 }
84 <<<
85 main() {
86 MatchKind kind = element != null ?
87 a012345678901234567890123456789 :
88 b012345678901234567890123456789;
89 }
90 >>> expression function body
91 myFunction() => a012345678901234567890123456789 + b01234567890123456789012345678 9;
92 <<<
93 myFunction() =>
94 a012345678901234567890123456789 + b012345678901234567890123456789;
OLDNEW
« no previous file with comments | « pkg/analyzer/test/services/data/stmt_tests.data ('k') | pkg/analyzer/test/services/formatter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698