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

Unified Diff: runtime/lib/core_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 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 deed7c9cc48af3929a0c805184500298e7149229..6000ffc06d7fe41ba6132794fbf02a0926583df6 100644
--- a/runtime/lib/core_patch.dart
+++ b/runtime/lib/core_patch.dart
@@ -36,14 +36,13 @@ 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);
@@ -51,7 +50,7 @@ class _SyncIterator implements Iterator {
if (_moveNextFn == null) {
return false;
}
- while(true) {
+ while (true) {
if (yieldEachIterator != null) {
if (yieldEachIterator.moveNext()) {
return true;
@@ -77,6 +76,8 @@ 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