| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 return new JLibrary(libraryIndex, name, canonicalUri); | 102 return new JLibrary(libraryIndex, name, canonicalUri); |
| 103 } | 103 } |
| 104 | 104 |
| 105 IndexedClass createClass(LibraryEntity library, int classIndex, String name, | 105 IndexedClass createClass(LibraryEntity library, int classIndex, String name, |
| 106 {bool isAbstract}) { | 106 {bool isAbstract}) { |
| 107 return new JClass(library, classIndex, name, isAbstract: isAbstract); | 107 return new JClass(library, classIndex, name, isAbstract: isAbstract); |
| 108 } | 108 } |
| 109 | 109 |
| 110 TypeVariableEntity createTypeVariable( | 110 TypeVariableEntity createTypeVariable( |
| 111 Entity typeDeclaration, String name, int index) { | 111 Entity typeDeclaration, String name, int index) { |
| 112 throw new UnsupportedError('JsElementCreatorMixin.createTypeVariable'); | 112 return new JTypeVariable(typeDeclaration, name, index); |
| 113 } | 113 } |
| 114 | 114 |
| 115 IndexedConstructor createGenerativeConstructor( | 115 IndexedConstructor createGenerativeConstructor( |
| 116 int memberIndex, | 116 int memberIndex, |
| 117 ClassEntity enclosingClass, | 117 ClassEntity enclosingClass, |
| 118 Name name, | 118 Name name, |
| 119 ParameterStructure parameterStructure, | 119 ParameterStructure parameterStructure, |
| 120 {bool isExternal, | 120 {bool isExternal, |
| 121 bool isConst}) { | 121 bool isConst}) { |
| 122 return new JGenerativeConstructor( | 122 return new JGenerativeConstructor( |
| (...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 773 | 773 |
| 774 @override | 774 @override |
| 775 bool get isFunctionApplyUsed => _backendUsage.isFunctionApplyUsed; | 775 bool get isFunctionApplyUsed => _backendUsage.isFunctionApplyUsed; |
| 776 | 776 |
| 777 @override | 777 @override |
| 778 bool get isMirrorsUsed => _backendUsage.isMirrorsUsed; | 778 bool get isMirrorsUsed => _backendUsage.isMirrorsUsed; |
| 779 | 779 |
| 780 @override | 780 @override |
| 781 bool get isNoSuchMethodUsed => _backendUsage.isNoSuchMethodUsed; | 781 bool get isNoSuchMethodUsed => _backendUsage.isNoSuchMethodUsed; |
| 782 } | 782 } |
| OLD | NEW |