| 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.world_builder; | 5 library dart2js.kernel.world_builder; |
| 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/backend_api.dart'; | 10 import '../common/backend_api.dart'; |
| 11 import '../common/names.dart'; | |
| 12 import '../compile_time_constants.dart'; | 11 import '../compile_time_constants.dart'; |
| 13 import '../constants/constant_system.dart'; | 12 import '../constants/constant_system.dart'; |
| 14 import '../constants/constructors.dart'; | 13 import '../constants/constructors.dart'; |
| 15 import '../constants/evaluation.dart'; | 14 import '../constants/evaluation.dart'; |
| 16 import '../constants/expressions.dart'; | 15 import '../constants/expressions.dart'; |
| 17 import '../constants/values.dart'; | 16 import '../constants/values.dart'; |
| 18 import '../common_elements.dart'; | 17 import '../common_elements.dart'; |
| 19 import '../elements/elements.dart'; | 18 import '../elements/elements.dart'; |
| 20 import '../elements/entities.dart'; | 19 import '../elements/entities.dart'; |
| 21 import '../elements/types.dart'; | 20 import '../elements/types.dart'; |
| (...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 845 } | 844 } |
| 846 | 845 |
| 847 InterfaceType getMixinTypeForClass(KClass cls) { | 846 InterfaceType getMixinTypeForClass(KClass cls) { |
| 848 KClassEnv env = builder._classEnvs[cls.classIndex]; | 847 KClassEnv env = builder._classEnvs[cls.classIndex]; |
| 849 ir.Supertype mixedInType = env.cls.mixedInType; | 848 ir.Supertype mixedInType = env.cls.mixedInType; |
| 850 if (mixedInType == null) return null; | 849 if (mixedInType == null) return null; |
| 851 return builder.createInterfaceType( | 850 return builder.createInterfaceType( |
| 852 mixedInType.classNode, mixedInType.typeArguments); | 851 mixedInType.classNode, mixedInType.typeArguments); |
| 853 } | 852 } |
| 854 } | 853 } |
| OLD | NEW |