| 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; |
| 11 import '../common/resolution.dart'; | 11 import '../common/resolution.dart'; |
| 12 import '../compile_time_constants.dart'; | 12 import '../compile_time_constants.dart'; |
| 13 import '../constants/constant_system.dart'; | 13 import '../constants/constant_system.dart'; |
| 14 import '../constants/constructors.dart'; | 14 import '../constants/constructors.dart'; |
| 15 import '../constants/evaluation.dart'; | 15 import '../constants/evaluation.dart'; |
| 16 import '../constants/expressions.dart'; | 16 import '../constants/expressions.dart'; |
| 17 import '../constants/values.dart'; | 17 import '../constants/values.dart'; |
| 18 import '../common_elements.dart'; | 18 import '../common_elements.dart'; |
| 19 import '../elements/elements.dart'; | 19 import '../elements/elements.dart'; |
| 20 import '../elements/entities.dart'; | 20 import '../elements/entities.dart'; |
| 21 import '../elements/names.dart'; |
| 21 import '../elements/types.dart'; | 22 import '../elements/types.dart'; |
| 22 import '../environment.dart'; | 23 import '../environment.dart'; |
| 23 import '../frontend_strategy.dart'; | 24 import '../frontend_strategy.dart'; |
| 24 import '../js_backend/constant_system_javascript.dart'; | 25 import '../js_backend/constant_system_javascript.dart'; |
| 25 import '../js_backend/native_data.dart'; | 26 import '../js_backend/native_data.dart'; |
| 26 import '../js_backend/no_such_method_registry.dart'; | 27 import '../js_backend/no_such_method_registry.dart'; |
| 27 import '../native/native.dart' as native; | 28 import '../native/native.dart' as native; |
| 28 import '../native/resolver.dart'; | 29 import '../native/resolver.dart'; |
| 29 import '../ordered_typeset.dart'; | 30 import '../ordered_typeset.dart'; |
| 30 import '../ssa/kernel_impact.dart'; | 31 import '../ssa/kernel_impact.dart'; |
| (...skipping 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1302 } | 1303 } |
| 1303 | 1304 |
| 1304 InterfaceType getMixinTypeForClass(KClass cls) { | 1305 InterfaceType getMixinTypeForClass(KClass cls) { |
| 1305 _KClassEnv env = elementMap._classEnvs[cls.classIndex]; | 1306 _KClassEnv env = elementMap._classEnvs[cls.classIndex]; |
| 1306 ir.Supertype mixedInType = env.cls.mixedInType; | 1307 ir.Supertype mixedInType = env.cls.mixedInType; |
| 1307 if (mixedInType == null) return null; | 1308 if (mixedInType == null) return null; |
| 1308 return elementMap.createInterfaceType( | 1309 return elementMap.createInterfaceType( |
| 1309 mixedInType.classNode, mixedInType.typeArguments); | 1310 mixedInType.classNode, mixedInType.typeArguments); |
| 1310 } | 1311 } |
| 1311 } | 1312 } |
| OLD | NEW |