| 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.element_map; | 5 library dart2js.kernel.element_map; |
| 6 | 6 |
| 7 import 'package:kernel/ast.dart' as ir; | 7 import 'package:kernel/ast.dart' as ir; |
| 8 | 8 |
| 9 import '../common.dart'; | 9 import '../common.dart'; |
| 10 import '../common/names.dart' show Identifiers; | 10 import '../common/names.dart' show Identifiers; |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 .addLast(data.mixedInType = processSupertype(node.mixedInType)); | 311 .addLast(data.mixedInType = processSupertype(node.mixedInType)); |
| 312 } else { | 312 } else { |
| 313 data.isMixinApplication = false; | 313 data.isMixinApplication = false; |
| 314 } | 314 } |
| 315 node.implementedTypes.forEach((ir.Supertype supertype) { | 315 node.implementedTypes.forEach((ir.Supertype supertype) { |
| 316 linkBuilder.addLast(processSupertype(supertype)); | 316 linkBuilder.addLast(processSupertype(supertype)); |
| 317 }); | 317 }); |
| 318 Link<InterfaceType> interfaces = linkBuilder.toLink(); | 318 Link<InterfaceType> interfaces = linkBuilder.toLink(); |
| 319 OrderedTypeSetBuilder setBuilder = | 319 OrderedTypeSetBuilder setBuilder = |
| 320 new _KernelOrderedTypeSetBuilder(this, cls); | 320 new _KernelOrderedTypeSetBuilder(this, cls); |
| 321 data.orderedTypeSet = | 321 data.orderedTypeSet = setBuilder.createOrderedTypeSet( |
| 322 setBuilder.createOrderedTypeSet(data.supertype, interfaces); | 322 data.supertype, interfaces.reverse()); |
| 323 data.interfaces = new List<InterfaceType>.from(interfaces.toList()); | 323 data.interfaces = new List<InterfaceType>.from(interfaces.toList()); |
| 324 } | 324 } |
| 325 } | 325 } |
| 326 } | 326 } |
| 327 | 327 |
| 328 @override | 328 @override |
| 329 MemberEntity getMember(ir.Member node) { | 329 MemberEntity getMember(ir.Member node) { |
| 330 if (node is ir.Field) { | 330 if (node is ir.Field) { |
| 331 return _getField(node); | 331 return _getField(node); |
| 332 } else if (node is ir.Constructor) { | 332 } else if (node is ir.Constructor) { |
| (...skipping 1611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1944 if (data.constructorBody != null) { | 1944 if (data.constructorBody != null) { |
| 1945 f(data.constructorBody); | 1945 f(data.constructorBody); |
| 1946 } | 1946 } |
| 1947 }); | 1947 }); |
| 1948 } | 1948 } |
| 1949 | 1949 |
| 1950 String getDeferredUri(ir.LibraryDependency node) { | 1950 String getDeferredUri(ir.LibraryDependency node) { |
| 1951 throw new UnimplementedError('JsKernelToElementMap.getDeferredUri'); | 1951 throw new UnimplementedError('JsKernelToElementMap.getDeferredUri'); |
| 1952 } | 1952 } |
| 1953 } | 1953 } |
| OLD | NEW |