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

Unified Diff: test/dart_codegen/expect/collection/queue.dart

Issue 959073002: Fix new line breaks on } (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 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 | « test/dart_codegen/expect/collection/list.dart ('k') | test/dart_codegen/expect/collection/set.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/dart_codegen/expect/collection/queue.dart
diff --git a/test/dart_codegen/expect/collection/queue.dart b/test/dart_codegen/expect/collection/queue.dart
index dba5699f61ee1e97f02243403d7ab989b95d1ef6..0f180c24946fb75dc661ccc291fa81008ade6ac9 100644
--- a/test/dart_codegen/expect/collection/queue.dart
+++ b/test/dart_codegen/expect/collection/queue.dart
@@ -245,9 +245,7 @@ result.addLast(element);
Iterator<E> get iterator => new _ListQueueIterator<E>(this);
void forEach(void action(E element)) {
int modificationCount = _modificationCount;
- for (int i = _head;
- i != _tail;
- i = (i + 1) & (_table.length - 1)) {
+ for (int i = _head; i != _tail; i = (i + 1) & (_table.length - 1)) {
action(_table[i]);
_checkModification(modificationCount);
}
@@ -337,9 +335,7 @@ for (E element in elements) _add(element);
}
}
bool remove(Object object) {
-for (int i = _head;
- i != _tail;
- i = (i + 1) & (_table.length - 1)) {
+for (int i = _head; i != _tail; i = (i + 1) & (_table.length - 1)) {
E element = _table[i];
if (element == object) {
_remove(i);
@@ -374,9 +370,7 @@ _filterWhere(test, false);
}
void clear() {
if (_head != _tail) {
-for (int i = _head;
- i != _tail;
- i = (i + 1) & (_table.length - 1)) {
+for (int i = _head; i != _tail; i = (i + 1) & (_table.length - 1)) {
_table[i] = ((__x36) => DDC$RT.cast(__x36, Null, E, "CastLiteral", """line 553, column 21 of dart:collection/queue.dart: """, __x36 is E, false))(null);
}
_head = _tail = 0;
@@ -412,9 +406,7 @@ if (_head == _tail) throw IterableElementError.noElement();
static bool _isPowerOf2(int number) => (number & (number - 1)) == 0;
static int _nextPowerOf2(int number) {
assert (number > 0); number = (number << 1) - 1;
- for (;
-;
-) {
+ for (;;) {
int nextNumber = number & (number - 1);
if (nextNumber == 0) return number;
number = nextNumber;
« no previous file with comments | « test/dart_codegen/expect/collection/list.dart ('k') | test/dart_codegen/expect/collection/set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698