Skip to content

Commit 73117f0

Browse files
munificentCommit Queue
authored andcommitted
Reformat sdk/ using the new style.
There should be no actual code changes here, just formatting. Change-Id: Id7356fdd9a0963ec0965b92e5ca1b218085f162e CoreLibraryReviewExempt: No behavioral changes Tested: No meaningful changes, ran on bots Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/394000 Auto-Submit: Bob Nystrom <[email protected]> Commit-Queue: Bob Nystrom <[email protected]> Reviewed-by: Johnni Winther <[email protected]> Reviewed-by: Lasse Nielsen <[email protected]>
1 parent 76feb10 commit 73117f0

File tree

271 files changed

+25178
-13182
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

271 files changed

+25178
-13182
lines changed

pkg/front_end/test/macros/application/data/tests/crash.dart.expect

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,26 @@ library;
1010
// #1 executeTypesMacro (package:_macros/src/executor/execute_macro.dart:39:21)
1111
// #2 MacroExpansionClient._executeTypesPhase.<anonymous closure> (package:_macros/src/executor/client.dart:219:17)
1212
// #3 runPhase.<anonymous closure> (package:_macros/src/executor/client.dart:385:30)
13-
// #4 _rootRun (dart:async/zone.dart:1414:13)
14-
// #5 _CustomZone.run (dart:async/zone.dart:1317:19)
15-
// #6 _CustomZone.runGuarded (dart:async/zone.dart:1225:7)
13+
// #4 _rootRun (dart:async/zone.dart:1525:13)
14+
// #5 _CustomZone.run (dart:async/zone.dart:1422:19)
15+
// #6 _CustomZone.runGuarded (dart:async/zone.dart:1321:7)
1616
// #7 runPhase (package:_macros/src/executor/client.dart:385:8)
1717
// #8 MacroExpansionClient._executeTypesPhase (package:_macros/src/executor/client.dart:218:43)
1818
// #9 MacroExpansionClient._handleMessage.<anonymous closure> (package:_macros/src/executor/client.dart:145:18)
19-
// #10 _rootRun (dart:async/zone.dart:1414:13)
20-
// #11 _CustomZone.run (dart:async/zone.dart:1317:19)
19+
// #10 _rootRun (dart:async/zone.dart:1525:13)
20+
// #11 _CustomZone.run (dart:async/zone.dart:1422:19)
2121
// #12 withRemoteInstanceZone (package:_macros/src/executor/remote_instance.dart:172:15)
2222
// #13 MacroExpansionClient._handleMessage (package:_macros/src/executor/client.dart:118:11)
2323
// #14 new MacroExpansionClient._.<anonymous closure> (package:_macros/src/executor/client.dart:37:39)
24-
// #15 _rootRunUnary (dart:async/zone.dart:1430:13)
25-
// #16 _CustomZone.runUnary (dart:async/zone.dart:1324:19)
26-
// #17 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1233:7)
27-
// #18 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:366:11)
28-
// #19 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:297:7)
29-
// #20 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:777:19)
30-
// #21 _StreamController._add (dart:async/stream_controller.dart:651:7)
31-
// #22 _StreamController.add (dart:async/stream_controller.dart:606:5)
32-
// #23 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)
24+
// #15 _rootRunUnary (dart:async/zone.dart:1546:13)
25+
// #16 _CustomZone.runUnary (dart:async/zone.dart:1429:19)
26+
// #17 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1329:7)
27+
// #18 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:381:11)
28+
// #19 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:312:7)
29+
// #20 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:798:19)
30+
// #21 _StreamController._add (dart:async/stream_controller.dart:663:7)
31+
// #22 _StreamController.add (dart:async/stream_controller.dart:618:5)
32+
// #23 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:194:12)
3333
//
3434
// @CrashTypesMacro()
3535
// ^
@@ -42,26 +42,26 @@ library;
4242
// #1 executeDeclarationsMacro (package:_macros/src/executor/execute_macro.dart:107:21)
4343
// #2 MacroExpansionClient._executeDeclarationsPhase.<anonymous closure> (package:_macros/src/executor/client.dart:248:11)
4444
// #3 runPhase.<anonymous closure> (package:_macros/src/executor/client.dart:385:30)
45-
// #4 _rootRun (dart:async/zone.dart:1414:13)
46-
// #5 _CustomZone.run (dart:async/zone.dart:1317:19)
47-
// #6 _CustomZone.runGuarded (dart:async/zone.dart:1225:7)
45+
// #4 _rootRun (dart:async/zone.dart:1525:13)
46+
// #5 _CustomZone.run (dart:async/zone.dart:1422:19)
47+
// #6 _CustomZone.runGuarded (dart:async/zone.dart:1321:7)
4848
// #7 runPhase (package:_macros/src/executor/client.dart:385:8)
4949
// #8 MacroExpansionClient._executeDeclarationsPhase (package:_macros/src/executor/client.dart:247:43)
5050
// #9 MacroExpansionClient._handleMessage.<anonymous closure> (package:_macros/src/executor/client.dart:135:18)
51-
// #10 _rootRun (dart:async/zone.dart:1414:13)
52-
// #11 _CustomZone.run (dart:async/zone.dart:1317:19)
51+
// #10 _rootRun (dart:async/zone.dart:1525:13)
52+
// #11 _CustomZone.run (dart:async/zone.dart:1422:19)
5353
// #12 withRemoteInstanceZone (package:_macros/src/executor/remote_instance.dart:172:15)
5454
// #13 MacroExpansionClient._handleMessage (package:_macros/src/executor/client.dart:118:11)
5555
// #14 new MacroExpansionClient._.<anonymous closure> (package:_macros/src/executor/client.dart:37:39)
56-
// #15 _rootRunUnary (dart:async/zone.dart:1430:13)
57-
// #16 _CustomZone.runUnary (dart:async/zone.dart:1324:19)
58-
// #17 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1233:7)
59-
// #18 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:366:11)
60-
// #19 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:297:7)
61-
// #20 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:777:19)
62-
// #21 _StreamController._add (dart:async/stream_controller.dart:651:7)
63-
// #22 _StreamController.add (dart:async/stream_controller.dart:606:5)
64-
// #23 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)
56+
// #15 _rootRunUnary (dart:async/zone.dart:1546:13)
57+
// #16 _CustomZone.runUnary (dart:async/zone.dart:1429:19)
58+
// #17 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1329:7)
59+
// #18 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:381:11)
60+
// #19 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:312:7)
61+
// #20 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:798:19)
62+
// #21 _StreamController._add (dart:async/stream_controller.dart:663:7)
63+
// #22 _StreamController.add (dart:async/stream_controller.dart:618:5)
64+
// #23 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:194:12)
6565
//
6666
// @CrashDeclarationsMacro()
6767
// ^
@@ -74,26 +74,26 @@ library;
7474
// #1 executeDefinitionMacro (package:_macros/src/executor/execute_macro.dart:167:21)
7575
// #2 MacroExpansionClient._executeDefinitionsPhase.<anonymous closure> (package:_macros/src/executor/client.dart:276:17)
7676
// #3 runPhase.<anonymous closure> (package:_macros/src/executor/client.dart:385:30)
77-
// #4 _rootRun (dart:async/zone.dart:1414:13)
78-
// #5 _CustomZone.run (dart:async/zone.dart:1317:19)
79-
// #6 _CustomZone.runGuarded (dart:async/zone.dart:1225:7)
77+
// #4 _rootRun (dart:async/zone.dart:1525:13)
78+
// #5 _CustomZone.run (dart:async/zone.dart:1422:19)
79+
// #6 _CustomZone.runGuarded (dart:async/zone.dart:1321:7)
8080
// #7 runPhase (package:_macros/src/executor/client.dart:385:8)
8181
// #8 MacroExpansionClient._executeDefinitionsPhase (package:_macros/src/executor/client.dart:275:43)
8282
// #9 MacroExpansionClient._handleMessage.<anonymous closure> (package:_macros/src/executor/client.dart:140:18)
83-
// #10 _rootRun (dart:async/zone.dart:1414:13)
84-
// #11 _CustomZone.run (dart:async/zone.dart:1317:19)
83+
// #10 _rootRun (dart:async/zone.dart:1525:13)
84+
// #11 _CustomZone.run (dart:async/zone.dart:1422:19)
8585
// #12 withRemoteInstanceZone (package:_macros/src/executor/remote_instance.dart:172:15)
8686
// #13 MacroExpansionClient._handleMessage (package:_macros/src/executor/client.dart:118:11)
8787
// #14 new MacroExpansionClient._.<anonymous closure> (package:_macros/src/executor/client.dart:37:39)
88-
// #15 _rootRunUnary (dart:async/zone.dart:1430:13)
89-
// #16 _CustomZone.runUnary (dart:async/zone.dart:1324:19)
90-
// #17 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1233:7)
91-
// #18 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:366:11)
92-
// #19 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:297:7)
93-
// #20 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:777:19)
94-
// #21 _StreamController._add (dart:async/stream_controller.dart:651:7)
95-
// #22 _StreamController.add (dart:async/stream_controller.dart:606:5)
96-
// #23 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)
88+
// #15 _rootRunUnary (dart:async/zone.dart:1546:13)
89+
// #16 _CustomZone.runUnary (dart:async/zone.dart:1429:19)
90+
// #17 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1329:7)
91+
// #18 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:381:11)
92+
// #19 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:312:7)
93+
// #20 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:798:19)
94+
// #21 _StreamController._add (dart:async/stream_controller.dart:663:7)
95+
// #22 _StreamController.add (dart:async/stream_controller.dart:618:5)
96+
// #23 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:194:12)
9797
//
9898
// @CrashDefinitionMacro()
9999
// ^

pkg/js_shared/lib/synced/recipe_syntax.dart

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -192,23 +192,38 @@ abstract class Recipe {
192192
test("wrapFutureOr", wrapFutureOr, wrapFutureOrString);
193193
test("startTypeArguments", startTypeArguments, startTypeArgumentsString);
194194
test("endTypeArguments", endTypeArguments, endTypeArgumentsString);
195-
test("startFunctionArguments", startFunctionArguments,
196-
startFunctionArgumentsString);
197-
test("endFunctionArguments", endFunctionArguments,
198-
endFunctionArgumentsString);
195+
test(
196+
"startFunctionArguments",
197+
startFunctionArguments,
198+
startFunctionArgumentsString,
199+
);
200+
test(
201+
"endFunctionArguments",
202+
endFunctionArguments,
203+
endFunctionArgumentsString,
204+
);
199205
test("startOptionalGroup", startOptionalGroup, startOptionalGroupString);
200206
test("endOptionalGroup", endOptionalGroup, endOptionalGroupString);
201207
test("startNamedGroup", startNamedGroup, startNamedGroupString);
202208
test("endNamedGroup", endNamedGroup, endNamedGroupString);
203209
test("nameSeparator", nameSeparator, nameSeparatorString);
204-
test("requiredNameSeparator", requiredNameSeparator,
205-
requiredNameSeparatorString);
206-
test("genericFunctionTypeParameterIndex", genericFunctionTypeParameterIndex,
207-
genericFunctionTypeParameterIndexString);
210+
test(
211+
"requiredNameSeparator",
212+
requiredNameSeparator,
213+
requiredNameSeparatorString,
214+
);
215+
test(
216+
"genericFunctionTypeParameterIndex",
217+
genericFunctionTypeParameterIndex,
218+
genericFunctionTypeParameterIndexString,
219+
);
208220
test("startRecord", startRecord, startRecordString);
209221
test("extensionOp", extensionOp, extensionOpString);
210222
testExtension(
211-
"pushNeverExtension", pushNeverExtension, pushNeverExtensionString);
223+
"pushNeverExtension",
224+
pushNeverExtension,
225+
pushNeverExtensionString,
226+
);
212227
testExtension("pushAnyExtension", pushAnyExtension, pushAnyExtensionString);
213228

214229
test("_formfeed", _formfeed, _formfeedString);

sdk/lib/_http/crypto.dart

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ abstract class _HashBase {
4141
bool _digestCalled = false;
4242

4343
_HashBase(this._chunkSizeInWords, int digestSizeInWords, this._bigEndianWords)
44-
: _pendingData = [],
45-
_currentChunk = Uint32List(_chunkSizeInWords),
46-
_h = Uint32List(digestSizeInWords);
44+
: _pendingData = [],
45+
_currentChunk = Uint32List(_chunkSizeInWords),
46+
_h = Uint32List(digestSizeInWords);
4747

4848
// Update the hasher with more data.
4949
void add(List<int> data) {
@@ -181,14 +181,14 @@ class _MD5 extends _HashBase {
181181
0xd4ef3085, 0x04881d05, 0xd9d4d039, 0xe6db99e5, 0x1fa27cf8, 0xc4ac5665, //
182182
0xf4292244, 0x432aff97, 0xab9423a7, 0xfc93a039, 0x655b59c3, 0x8f0ccc92, //
183183
0xffeff47d, 0x85845dd1, 0x6fa87e4f, 0xfe2ce6e0, 0xa3014314, 0x4e0811a1, //
184-
0xf7537e82, 0xbd3af235, 0x2ad7d2bb, 0xeb86d391
184+
0xf7537e82, 0xbd3af235, 0x2ad7d2bb, 0xeb86d391,
185185
];
186186

187187
static const _r = [
188188
7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 5, 9, 14, //
189189
20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 4, 11, 16, 23, 4, 11, //
190190
16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 6, 10, 15, 21, 6, 10, 15, 21, 6, //
191-
10, 15, 21, 6, 10, 15, 21
191+
10, 15, 21, 6, 10, 15, 21,
192192
];
193193

194194
// Compute one iteration of the MD5 algorithm with a chunk of
@@ -223,7 +223,9 @@ class _MD5 extends _HashBase {
223223
d = c;
224224
c = b;
225225
b = _add32(
226-
b, _rotl32(_add32(_add32(a, t0), _add32(_k[i], m[t1])), _r[i]));
226+
b,
227+
_rotl32(_add32(_add32(a, t0), _add32(_k[i], m[t1])), _r[i]),
228+
);
227229
a = temp;
228230
}
229231

@@ -239,9 +241,7 @@ class _SHA1 extends _HashBase {
239241
final List<int> _w;
240242

241243
// Construct a SHA1 hasher object.
242-
_SHA1()
243-
: _w = List<int>.filled(80, 0),
244-
super(16, 5, true) {
244+
_SHA1() : _w = List<int>.filled(80, 0), super(16, 5, true) {
245245
_h[0] = 0x67452301;
246246
_h[1] = 0xEFCDAB89;
247247
_h[2] = 0x98BADCFE;

0 commit comments

Comments
 (0)