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

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

Issue 2220883004: Use metadata annotation @patch for patch classes (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: wip Created 4 years, 4 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 import "dart:_internal"; 5 import "dart:_internal";
6 6
7 // We need to pass the value as first argument and leave the second and third 7 // We need to pass the value as first argument and leave the second and third
8 // arguments empty (used for error handling). 8 // arguments empty (used for error handling).
9 // See vm/ast_transformer.cc for usage. 9 // See vm/ast_transformer.cc for usage.
10 Function _asyncThenWrapperHelper(continuation) { 10 Function _asyncThenWrapperHelper(continuation) {
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 // Cancellation does not affect an async generator that is 181 // Cancellation does not affect an async generator that is
182 // suspended at an await. 182 // suspended at an await.
183 if (isSuspendedAtYield) { 183 if (isSuspendedAtYield) {
184 scheduleGenerator(); 184 scheduleGenerator();
185 } 185 }
186 } 186 }
187 return cancellationCompleter.future; 187 return cancellationCompleter.future;
188 } 188 }
189 } 189 }
190 190
191 patch void _rethrow(Object error, StackTrace stackTrace) native "Async_rethrow"; 191 @patch void _rethrow(Object error, StackTrace stackTrace) native "Async_rethrow" ;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698