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

Side by Side Diff: runtime/lib/schedule_microtask_patch.dart

Issue 2751423005: Run dartfmt on all files under runtime. (Closed)
Patch Set: Run dartfmt on all files under runtime. Created 3 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
« no previous file with comments | « runtime/lib/regexp_patch.dart ('k') | runtime/lib/stacktrace.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 @patch class _AsyncRun { 5 @patch
6 @patch static void _scheduleImmediate(void callback()) { 6 class _AsyncRun {
7 @patch
8 static void _scheduleImmediate(void callback()) {
7 if (_ScheduleImmediate._closure == null) { 9 if (_ScheduleImmediate._closure == null) {
8 throw new UnsupportedError("Microtasks are not supported"); 10 throw new UnsupportedError("Microtasks are not supported");
9 } 11 }
10 _ScheduleImmediate._closure(callback); 12 _ScheduleImmediate._closure(callback);
11 } 13 }
12 } 14 }
13 15
14 typedef void _ScheduleImmediateClosure(void callback()); 16 typedef void _ScheduleImmediateClosure(void callback());
15 17
16 class _ScheduleImmediate { 18 class _ScheduleImmediate {
17 static _ScheduleImmediateClosure _closure; 19 static _ScheduleImmediateClosure _closure;
18 } 20 }
19 21
20 void _setScheduleImmediateClosure(_ScheduleImmediateClosure closure) { 22 void _setScheduleImmediateClosure(_ScheduleImmediateClosure closure) {
21 _ScheduleImmediate._closure = closure; 23 _ScheduleImmediate._closure = closure;
22 } 24 }
OLDNEW
« no previous file with comments | « runtime/lib/regexp_patch.dart ('k') | runtime/lib/stacktrace.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698