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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 : super( | 432 : super( |
433 memberIndex, | 433 memberIndex, |
434 constructor.library, | 434 constructor.library, |
435 constructor.enclosingClass, | 435 constructor.enclosingClass, |
436 constructor.memberName, | 436 constructor.memberName, |
437 constructor.parameterStructure, | 437 constructor.parameterStructure, |
438 AsyncMarker.SYNC, | 438 AsyncMarker.SYNC, |
439 isStatic: false, | 439 isStatic: false, |
440 isExternal: false); | 440 isExternal: false); |
441 | 441 |
442 @override | |
443 bool get isFunction => true; | |
444 | |
445 String get _kind => 'constructor_body'; | 442 String get _kind => 'constructor_body'; |
446 } | 443 } |
447 | 444 |
448 class JMethod extends JFunction { | 445 class JMethod extends JFunction { |
449 final bool isAbstract; | 446 final bool isAbstract; |
450 | 447 |
451 JMethod(int memberIndex, JLibrary library, JClass enclosingClass, Name name, | 448 JMethod(int memberIndex, JLibrary library, JClass enclosingClass, Name name, |
452 ParameterStructure parameterStructure, AsyncMarker asyncMarker, | 449 ParameterStructure parameterStructure, AsyncMarker asyncMarker, |
453 {bool isStatic, bool isExternal, this.isAbstract}) | 450 {bool isStatic, bool isExternal, this.isAbstract}) |
454 : super(memberIndex, library, enclosingClass, name, parameterStructure, | 451 : super(memberIndex, library, enclosingClass, name, parameterStructure, |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 | 739 |
743 @override | 740 @override |
744 bool get isFunctionApplyUsed => _backendUsage.isFunctionApplyUsed; | 741 bool get isFunctionApplyUsed => _backendUsage.isFunctionApplyUsed; |
745 | 742 |
746 @override | 743 @override |
747 bool get isMirrorsUsed => _backendUsage.isMirrorsUsed; | 744 bool get isMirrorsUsed => _backendUsage.isMirrorsUsed; |
748 | 745 |
749 @override | 746 @override |
750 bool get isNoSuchMethodUsed => _backendUsage.isNoSuchMethodUsed; | 747 bool get isNoSuchMethodUsed => _backendUsage.isNoSuchMethodUsed; |
751 } | 748 } |
OLD | NEW |