| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |