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

Side by Side Diff: pkg/kernel/test/class_hierarchy_self_check.dart

Issue 2998583003: Fix hints in kernel (TBR) (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 'package:kernel/kernel.dart'; 5 import 'package:kernel/kernel.dart';
6 import 'package:kernel/class_hierarchy.dart'; 6 import 'package:kernel/class_hierarchy.dart';
7 import 'package:test/test.dart'; 7 import 'package:test/test.dart';
8 import 'class_hierarchy_basic.dart'; 8 import 'class_hierarchy_basic.dart';
9 import 'dart:io'; 9 import 'dart:io';
10 import 'dart:math'; 10 import 'dart:math';
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 } 144 }
145 } 145 }
146 } 146 }
147 if (verbose) { 147 if (verbose) {
148 print('\rProgress 100%. Done.'); 148 print('\rProgress 100%. Done.');
149 } 149 }
150 } 150 }
151 151
152 var random = new Random(12345); 152 var random = new Random(12345);
153 153
154 List/*<T>*/ pickRandom/*<T>*/(List/*<T>*/ items, int n) { 154 List<T> pickRandom<T>(List<T> items, int n) {
155 var result = /*<T>*/ []; 155 var result = <T>[];
156 for (int i = 0; i < n; ++i) { 156 for (int i = 0; i < n; ++i) {
157 result.add(items[random.nextInt(items.length)]); 157 result.add(items[random.nextInt(items.length)]);
158 } 158 }
159 return result; 159 return result;
160 } 160 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698