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.js_model.elements; | 5 library dart2js.js_model.elements; |
6 | 6 |
7 import '../common_elements.dart'; | 7 import '../common_elements.dart'; |
8 import '../constants/constant_system.dart'; | 8 import '../constants/constant_system.dart'; |
9 import '../elements/elements.dart'; | 9 import '../elements/elements.dart'; |
10 import '../elements/entities.dart'; | 10 import '../elements/entities.dart'; |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 MemberEntity toBackendMember(MemberEntity member) => member; | 38 MemberEntity toBackendMember(MemberEntity member) => member; |
39 MemberEntity toFrontendMember(MemberEntity member) => member; | 39 MemberEntity toFrontendMember(MemberEntity member) => member; |
40 | 40 |
41 DartType toBackendType(DartType type) => type; | 41 DartType toBackendType(DartType type) => type; |
42 DartType fromFrontendType(DartType type) => type; | 42 DartType fromFrontendType(DartType type) => type; |
43 } | 43 } |
44 | 44 |
45 class JsClosedWorld extends ClosedWorldBase { | 45 class JsClosedWorld extends ClosedWorldBase { |
46 JsClosedWorld( | 46 JsClosedWorld( |
47 {CommonElements commonElements, | 47 {ElementEnvironment elementEnvironment, |
| 48 CommonElements commonElements, |
48 ConstantSystem constantSystem, | 49 ConstantSystem constantSystem, |
49 NativeData nativeData, | 50 NativeData nativeData, |
50 InterceptorData interceptorData, | 51 InterceptorData interceptorData, |
51 BackendUsage backendUsage, | 52 BackendUsage backendUsage, |
52 ResolutionWorldBuilder resolutionWorldBuilder, | 53 ResolutionWorldBuilder resolutionWorldBuilder, |
53 Set<ClassEntity> implementedClasses, | 54 Set<ClassEntity> implementedClasses, |
54 FunctionSet functionSet, | 55 FunctionSet functionSet, |
55 Set<TypedefElement> allTypedefs, | 56 Set<TypedefElement> allTypedefs, |
56 Map<ClassEntity, Set<ClassEntity>> mixinUses, | 57 Map<ClassEntity, Set<ClassEntity>> mixinUses, |
57 Map<ClassEntity, Set<ClassEntity>> typesImplementedBySubclasses, | 58 Map<ClassEntity, Set<ClassEntity>> typesImplementedBySubclasses, |
58 Map<ClassEntity, ClassHierarchyNode> classHierarchyNodes, | 59 Map<ClassEntity, ClassHierarchyNode> classHierarchyNodes, |
59 Map<ClassEntity, ClassSet> classSets}) | 60 Map<ClassEntity, ClassSet> classSets}) |
60 : super( | 61 : super( |
| 62 elementEnvironment: elementEnvironment, |
61 commonElements: commonElements, | 63 commonElements: commonElements, |
62 constantSystem: constantSystem, | 64 constantSystem: constantSystem, |
63 nativeData: nativeData, | 65 nativeData: nativeData, |
64 interceptorData: interceptorData, | 66 interceptorData: interceptorData, |
65 backendUsage: backendUsage, | 67 backendUsage: backendUsage, |
66 resolutionWorldBuilder: resolutionWorldBuilder, | 68 resolutionWorldBuilder: resolutionWorldBuilder, |
67 implementedClasses: implementedClasses, | 69 implementedClasses: implementedClasses, |
68 functionSet: functionSet, | 70 functionSet: functionSet, |
69 allTypedefs: allTypedefs, | 71 allTypedefs: allTypedefs, |
70 mixinUses: mixinUses, | 72 mixinUses: mixinUses, |
(...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1261 @override | 1263 @override |
1262 ClassEntity get numClass => _map.toBackendClass(_commonElements.numClass); | 1264 ClassEntity get numClass => _map.toBackendClass(_commonElements.numClass); |
1263 | 1265 |
1264 @override | 1266 @override |
1265 ClassEntity get boolClass => _map.toBackendClass(_commonElements.boolClass); | 1267 ClassEntity get boolClass => _map.toBackendClass(_commonElements.boolClass); |
1266 | 1268 |
1267 @override | 1269 @override |
1268 FunctionEntity get throwUnsupportedError => | 1270 FunctionEntity get throwUnsupportedError => |
1269 _map.toBackendMember(_commonElements.throwUnsupportedError); | 1271 _map.toBackendMember(_commonElements.throwUnsupportedError); |
1270 } | 1272 } |
OLD | NEW |