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

Unified Diff: test/dart_codegen/expect/_internal/sort.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/_internal/lists.dart ('k') | test/dart_codegen/expect/async/async_error.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/dart_codegen/expect/_internal/sort.dart
diff --git a/test/dart_codegen/expect/_internal/sort.dart b/test/dart_codegen/expect/_internal/sort.dart
index f0ac607f5a80fc837efbf52d7560f9fa6840a532..46dc9bbb3077671d798db44435fc35da1e356a55 100644
--- a/test/dart_codegen/expect/_internal/sort.dart
+++ b/test/dart_codegen/expect/_internal/sort.dart
@@ -18,9 +18,7 @@ part of dart._internal;
}
}
static void _insertionSort(List a, int left, int right, int compare(a, b)) {
- for (int i = left + 1;
- i <= right;
- i++) {
+ for (int i = left + 1; i <= right; i++) {
var el = a[i];
int j = i;
while ((j > left) && (compare(a[j - 1], el) > 0)) {
@@ -99,9 +97,7 @@ part of dart._internal;
bool pivots_are_equal = (compare(pivot1, pivot2) == 0);
if (pivots_are_equal) {
var pivot = pivot1;
- for (int k = less;
- k <= great;
- k++) {
+ for (int k = less; k <= great; k++) {
var ak = a[k];
int comp = compare(ak, pivot);
if (comp == 0) continue;
@@ -135,9 +131,7 @@ part of dart._internal;
}
}
else {
- for (int k = less;
- k <= great;
- k++) {
+ for (int k = less; k <= great; k++) {
var ak = a[k];
int comp_pivot1 = compare(ak, pivot1);
if (comp_pivot1 < 0) {
@@ -190,9 +184,7 @@ part of dart._internal;
while (compare(a[great], pivot2) == 0) {
great--;
}
- for (int k = less;
- k <= great;
- k++) {
+ for (int k = less; k <= great; k++) {
var ak = a[k];
int comp_pivot1 = compare(ak, pivot1);
if (comp_pivot1 == 0) {
« no previous file with comments | « test/dart_codegen/expect/_internal/lists.dart ('k') | test/dart_codegen/expect/async/async_error.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698