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

Unified Diff: runtime/lib/async_patch.dart

Issue 2767533002: Revert "Fix observatory tests broken by running dartfmt." (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/lib/array_patch.dart ('k') | runtime/lib/bigint.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/async_patch.dart
diff --git a/runtime/lib/async_patch.dart b/runtime/lib/async_patch.dart
index 8cfcaa053d806399d44ac1b4d8cdbf7812dc3fdc..2823b73460dda50feb67f9ad64d271a2719a406f 100644
--- a/runtime/lib/async_patch.dart
+++ b/runtime/lib/async_patch.dart
@@ -45,7 +45,10 @@ Function _asyncErrorWrapperHelper(continuation) {
///
/// Returns the result of registering with `.then`.
Future _awaitHelper(
- var object, Function thenCallback, Function errorCallback, var awaiter) {
+ var object,
+ Function thenCallback,
+ Function errorCallback,
+ var awaiter) {
if (object is! Future) {
object = new _Future().._setValue(object);
} else if (object is! _Future) {
@@ -176,10 +179,9 @@ class _AsyncStarStreamController {
}
_AsyncStarStreamController(this.asyncStarBody) {
- controller = new StreamController(
- onListen: this.onListen,
- onResume: this.onResume,
- onCancel: this.onCancel);
+ controller = new StreamController(onListen: this.onListen,
+ onResume: this.onResume,
+ onCancel: this.onCancel);
}
onListen() {
@@ -211,20 +213,16 @@ class _AsyncStarStreamController {
}
}
-@patch
-void _rethrow(Object error, StackTrace stackTrace) native "Async_rethrow";
+@patch void _rethrow(Object error, StackTrace stackTrace) native "Async_rethrow";
-@patch
-class _Future<T> {
+@patch class _Future<T> {
/// The closure implementing the async[*]-body that is `await`ing this future.
Function _awaiter;
}
-@patch
-class _StreamImpl<T> {
+@patch class _StreamImpl<T> {
/// The closure implementing the async[*]-body that is `await`ing this future.
Function _awaiter;
-
/// The closure implementing the async-generator body that is creating events
/// for this stream.
Function _generator;
@@ -232,10 +230,11 @@ class _StreamImpl<T> {
/// Returns a [StackTrace] object containing the synchronous prefix for this
/// asynchronous method.
-Object _asyncStackTraceHelper() native "StackTrace_asyncStackTraceHelper";
+Object _asyncStackTraceHelper()
+ native "StackTrace_asyncStackTraceHelper";
void _clearAsyncThreadStackTrace()
native "StackTrace_clearAsyncThreadStackTrace";
-void _setAsyncThreadStackTrace(StackTrace stackTrace)
- native "StackTrace_setAsyncThreadStackTrace";
+void _setAsyncThreadStackTrace(StackTrace stackTrace) native
+ "StackTrace_setAsyncThreadStackTrace";
« no previous file with comments | « runtime/lib/array_patch.dart ('k') | runtime/lib/bigint.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698