| 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/resolution.dart'; | 11 import '../common/resolution.dart'; |
| 11 import '../compile_time_constants.dart'; | 12 import '../compile_time_constants.dart'; |
| 12 import '../constants/constant_system.dart'; | 13 import '../constants/constant_system.dart'; |
| 13 import '../constants/constructors.dart'; | 14 import '../constants/constructors.dart'; |
| 14 import '../constants/evaluation.dart'; | 15 import '../constants/evaluation.dart'; |
| 15 import '../constants/expressions.dart'; | 16 import '../constants/expressions.dart'; |
| 16 import '../constants/values.dart'; | 17 import '../constants/values.dart'; |
| 17 import '../common_elements.dart'; | 18 import '../common_elements.dart'; |
| 18 import '../elements/elements.dart'; | 19 import '../elements/elements.dart'; |
| 19 import '../elements/entities.dart'; | 20 import '../elements/entities.dart'; |
| (...skipping 1273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1293 } | 1294 } |
| 1294 | 1295 |
| 1295 InterfaceType getMixinTypeForClass(KClass cls) { | 1296 InterfaceType getMixinTypeForClass(KClass cls) { |
| 1296 _KClassEnv env = builder._classEnvs[cls.classIndex]; | 1297 _KClassEnv env = builder._classEnvs[cls.classIndex]; |
| 1297 ir.Supertype mixedInType = env.cls.mixedInType; | 1298 ir.Supertype mixedInType = env.cls.mixedInType; |
| 1298 if (mixedInType == null) return null; | 1299 if (mixedInType == null) return null; |
| 1299 return builder.createInterfaceType( | 1300 return builder.createInterfaceType( |
| 1300 mixedInType.classNode, mixedInType.typeArguments); | 1301 mixedInType.classNode, mixedInType.typeArguments); |
| 1301 } | 1302 } |
| 1302 } | 1303 } |
| OLD | NEW |