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

Unified Diff: runtime/lib/core_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/compact_hash.dart ('k') | runtime/lib/date_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/core_patch.dart
diff --git a/runtime/lib/core_patch.dart b/runtime/lib/core_patch.dart
index 6000ffc06d7fe41ba6132794fbf02a0926583df6..deed7c9cc48af3929a0c805184500298e7149229 100644
--- a/runtime/lib/core_patch.dart
+++ b/runtime/lib/core_patch.dart
@@ -36,13 +36,14 @@ class _SyncIterable extends IterableBase {
}
class _SyncIterator implements Iterator {
- bool isYieldEach; // Set by generated code for the yield* statement.
+ bool isYieldEach; // Set by generated code for the yield* statement.
Iterator yieldEachIterator;
- var _current; // Set by generated code for the yield and yield* statement.
+ var _current; // Set by generated code for the yield and yield* statement.
_SyncGeneratorCallback _moveNextFn;
- get current =>
- yieldEachIterator != null ? yieldEachIterator.current : _current;
+ get current => yieldEachIterator != null
+ ? yieldEachIterator.current
+ : _current;
_SyncIterator(this._moveNextFn);
@@ -50,7 +51,7 @@ class _SyncIterator implements Iterator {
if (_moveNextFn == null) {
return false;
}
- while (true) {
+ while(true) {
if (yieldEachIterator != null) {
if (yieldEachIterator.moveNext()) {
return true;
@@ -76,8 +77,6 @@ class _SyncIterator implements Iterator {
}
}
-@patch
-class StackTrace {
- @patch
- static StackTrace get current native "StackTrace_current";
+@patch class StackTrace {
+ @patch static StackTrace get current native "StackTrace_current";
}
« no previous file with comments | « runtime/lib/compact_hash.dart ('k') | runtime/lib/date_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698