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'; |
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'; |
20 import '../elements/types.dart'; | 21 import '../elements/types.dart'; |
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
844 } | 845 } |
845 | 846 |
846 InterfaceType getMixinTypeForClass(KClass cls) { | 847 InterfaceType getMixinTypeForClass(KClass cls) { |
847 KClassEnv env = builder._classEnvs[cls.classIndex]; | 848 KClassEnv env = builder._classEnvs[cls.classIndex]; |
848 ir.Supertype mixedInType = env.cls.mixedInType; | 849 ir.Supertype mixedInType = env.cls.mixedInType; |
849 if (mixedInType == null) return null; | 850 if (mixedInType == null) return null; |
850 return builder.createInterfaceType( | 851 return builder.createInterfaceType( |
851 mixedInType.classNode, mixedInType.typeArguments); | 852 mixedInType.classNode, mixedInType.typeArguments); |
852 } | 853 } |
853 } | 854 } |
OLD | NEW |