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

Side by Side Diff: pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart

Issue 2981633002: Introduce TypedefEntity (Closed)
Patch Set: Updated cf. comments Created 3 years, 5 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
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/element_map_impl.dart ('k') | pkg/compiler/lib/src/resolution/resolution_strategy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698