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 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 JField(int memberIndex, JLibrary library, JClass enclosingClass, Name name, | 499 JField(int memberIndex, JLibrary library, JClass enclosingClass, Name name, |
500 {bool isStatic, this.isAssignable, this.isConst}) | 500 {bool isStatic, this.isAssignable, this.isConst}) |
501 : super(memberIndex, library, enclosingClass, name, isStatic: isStatic); | 501 : super(memberIndex, library, enclosingClass, name, isStatic: isStatic); |
502 | 502 |
503 @override | 503 @override |
504 bool get isField => true; | 504 bool get isField => true; |
505 | 505 |
506 String get _kind => 'field'; | 506 String get _kind => 'field'; |
507 } | 507 } |
508 | 508 |
509 class JTypeVariable implements TypeVariableEntity { | 509 class JTypeVariable implements TypeVariableEntity, IndexedTypeVariable { |
510 final Entity typeDeclaration; | 510 final Entity typeDeclaration; |
511 final String name; | 511 final String name; |
512 final int index; | 512 final int index; |
513 | 513 |
514 JTypeVariable(this.typeDeclaration, this.name, this.index); | 514 JTypeVariable(this.typeDeclaration, this.name, this.index); |
515 | 515 |
516 String toString() => | 516 String toString() => |
517 '${jsElementPrefix}type_variable(${typeDeclaration.name}.$name)'; | 517 '${jsElementPrefix}type_variable(${typeDeclaration.name}.$name)'; |
518 } | 518 } |
519 | 519 |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
720 | 720 |
721 @override | 721 @override |
722 bool get isFunctionApplyUsed => _backendUsage.isFunctionApplyUsed; | 722 bool get isFunctionApplyUsed => _backendUsage.isFunctionApplyUsed; |
723 | 723 |
724 @override | 724 @override |
725 bool get isMirrorsUsed => _backendUsage.isMirrorsUsed; | 725 bool get isMirrorsUsed => _backendUsage.isMirrorsUsed; |
726 | 726 |
727 @override | 727 @override |
728 bool get isNoSuchMethodUsed => _backendUsage.isNoSuchMethodUsed; | 728 bool get isNoSuchMethodUsed => _backendUsage.isNoSuchMethodUsed; |
729 } | 729 } |
OLD | NEW |