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

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

Issue 1001403002: Remove the old formatter from analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 >>> assignment - initializer doesn't fit one line, wrap inside, keep name
14 main() {
15 result = myFunction(a0123456789012345 * b0123456789012345, c0123456789012345 * d0123456789012345);
16 }
17 <<<
18 main() {
19 result = myFunction(
20 a0123456789012345 * b0123456789012345,
21 c0123456789012345 * d0123456789012345);
22 }
23 >>> assignment - initializer fits one line
24 main() {
25 variableLoooooooooooooooong = functionLoooooooooooooooooooooooooooooooooooooon g(1, 2, 3, 4);
26 }
27 <<<
28 main() {
29 variableLoooooooooooooooong =
30 functionLoooooooooooooooooooooooooooooooooooooong(1, 2, 3, 4);
31 }
32 >>> assignment - initializer doesn't fit one line, name too long
33 main() {
34 variableLooooooooooooooooooong = functionLoooooooooooooooooooooooooooooooooooo ng(a0123456789012345 * b0123456789012345, c0123456789012345 * d0123456789012345) ;
35 }
36 <<<
37 main() {
38 variableLooooooooooooooooooong =
39 functionLoooooooooooooooooooooooooooooooooooong(
40 a0123456789012345 * b0123456789012345,
41 c0123456789012345 * d0123456789012345);
42 }
43 >>> variable declaration - initializer doesn't fit one line, wrap inside, keep n ame
44 main() {
45 var result = myFunction(a0123456789012345 * b0123456789012345, c01234567890123 45 * d0123456789012345);
46 }
47 <<<
48 main() {
49 var result = myFunction(
50 a0123456789012345 * b0123456789012345,
51 c0123456789012345 * d0123456789012345);
52 }
53 >>> variable declaration - initializer fits one line
54 main() {
55 var variableLoooooooooooooooong = functionLooooooooooooooooooooooooooooooooooo ong(1, 2, 3, 4);
56 }
57 <<<
58 main() {
59 var variableLoooooooooooooooong =
60 functionLoooooooooooooooooooooooooooooooooooong(1, 2, 3, 4);
61 }
62 >>> variable declaration - initializer doesn't fit one line, name too long
63 main() {
64 var variableLoooooooooooooooong = functionLooooooooooooooooooooooooooooooooooo ong(a0123456789012345 * b0123456789012345, c0123456789012345 * d0123456789012345 );
65 }
66 <<<
67 main() {
68 var variableLoooooooooooooooong =
69 functionLoooooooooooooooooooooooooooooooooooong(
70 a0123456789012345 * b0123456789012345,
71 c0123456789012345 * d0123456789012345);
72 }
73 >>> variable declaration - with binary expression
74 main() {
75 int result = a01234567890123456789 * b01234567890123456789 + c0123456789012345 6789 * d01234567890123456789;
76 }
77 <<<
78 main() {
79 int result =
80 a01234567890123456789 * b01234567890123456789 +
81 c01234567890123456789 * d01234567890123456789;
82 }
83 >>> arguments
84 main() {
85 myFunction(a0123456789012345 * b0123456789012345, c0123456789012345 * d0123456 789012345);
86 }
87 <<<
88 main() {
89 myFunction(
90 a0123456789012345 * b0123456789012345,
91 c0123456789012345 * d0123456789012345);
92 }
93 >>> arguments, nested
94 main() {
95 someFunctionOne(a012345678901234567890123456789,
96 someFunctionTwo(ba01234567890123456789, bb01234567890123456789, bc0123456789 0123456789),
97 someFunctionTwo(ca01234567890123456789, cb01234567890123456789, cc0123456789 0123456789),
98 d012345678901234567890123456789, e012345678901234567890123456789);
99 }
100 <<<
101 main() {
102 someFunctionOne(
103 a012345678901234567890123456789,
104 someFunctionTwo(
105 ba01234567890123456789,
106 bb01234567890123456789,
107 bc01234567890123456789),
108 someFunctionTwo(
109 ca01234567890123456789,
110 cb01234567890123456789,
111 cc01234567890123456789),
112 d012345678901234567890123456789,
113 e012345678901234567890123456789);
114 }
115 >>> conditions, same operator
116 main() {
117 if (a012345678901234567890123456789 || b012345678901234567890123456789 || c012 345678901234567890123456789
118 || d012345678901234567890123456789) {
119 }
120 }
121 <<<
122 main() {
123 if (a012345678901234567890123456789 ||
124 b012345678901234567890123456789 ||
125 c012345678901234567890123456789 ||
126 d012345678901234567890123456789) {
127 }
128 }
129 >>> conditions, different operators
130 main() {
131 if (a012345678901234567890123456789 && b012345678901234567890123456789 || c012 345678901234567890123456789
132 && d012345678901234567890123456789) {
133 }
134 }
135 <<<
136 main() {
137 if (a012345678901234567890123456789 && b012345678901234567890123456789 ||
138 c012345678901234567890123456789 && d012345678901234567890123456789) {
139 }
140 }
141 >>> conditional expression
142 main() {
143 MatchKind kind = element != null ? a012345678901234567890123456789 : b01234567 8901234567890123456789;
144 }
145 <<<
146 main() {
147 MatchKind kind = element != null ?
148 a012345678901234567890123456789 :
149 b012345678901234567890123456789;
150 }
151 >>> expression function body
152 myFunction() => a012345678901234567890123456789 + b01234567890123456789012345678 9;
153 <<<
154 myFunction() =>
155 a012345678901234567890123456789 + b012345678901234567890123456789;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698