| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 library dart2js.kernel.backend_strategy; | 5 library dart2js.kernel.backend_strategy; |
| 6 | 6 |
| 7 import 'package:kernel/ast.dart' as ir; | 7 import 'package:kernel/ast.dart' as ir; |
| 8 | 8 |
| 9 import '../backend_strategy.dart'; | 9 import '../backend_strategy.dart'; |
| 10 import '../common/codegen.dart' show CodegenRegistry, CodegenWorkItem; | 10 import '../common/codegen.dart' show CodegenRegistry, CodegenWorkItem; |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 @override | 234 @override |
| 235 Iterable<ClassEntity> sortClasses(Iterable<ClassEntity> classes) { | 235 Iterable<ClassEntity> sortClasses(Iterable<ClassEntity> classes) { |
| 236 return classes.toList() | 236 return classes.toList() |
| 237 ..sort((ClassEntity a, ClassEntity b) { | 237 ..sort((ClassEntity a, ClassEntity b) { |
| 238 int r = _compareLibraries(a.library, b.library); | 238 int r = _compareLibraries(a.library, b.library); |
| 239 if (r != 0) return r; | 239 if (r != 0) return r; |
| 240 return _compareNodes( | 240 return _compareNodes( |
| 241 a, elementMap.getClassNode(a), b, elementMap.getClassNode(b)); | 241 a, elementMap.getClassNode(a), b, elementMap.getClassNode(b)); |
| 242 }); | 242 }); |
| 243 } | 243 } |
| 244 |
| 245 @override |
| 246 Iterable<TypedefEntity> sortTypedefs(Iterable<TypedefEntity> typedefs) { |
| 247 // TODO(redemption): Support this. |
| 248 assert(typedefs.isEmpty); |
| 249 return typedefs; |
| 250 } |
| 244 } | 251 } |
| OLD | NEW |