| 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/names.dart' show Names; | 7 import '../common/names.dart' show Names; |
| 8 import '../elements/entities.dart'; | 8 import '../elements/entities.dart'; |
| 9 import '../elements/names.dart'; | 9 import '../elements/names.dart'; |
| 10 import '../elements/types.dart'; | 10 import '../elements/types.dart'; |
| (...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 | 540 |
| 541 @override | 541 @override |
| 542 bool get isField => true; | 542 bool get isField => true; |
| 543 | 543 |
| 544 String get _kind => 'field'; | 544 String get _kind => 'field'; |
| 545 } | 545 } |
| 546 | 546 |
| 547 class JClosureCallMethod extends JMethod { | 547 class JClosureCallMethod extends JMethod { |
| 548 JClosureCallMethod(int memberIndex, KernelClosureClass containingClass, | 548 JClosureCallMethod(int memberIndex, KernelClosureClass containingClass, |
| 549 ParameterStructure parameterStructure, AsyncMarker asyncMarker) | 549 ParameterStructure parameterStructure, AsyncMarker asyncMarker) |
| 550 : super(memberIndex, containingClass.library, containingClass, Names.call, | 550 : super( |
| 551 parameterStructure, asyncMarker, | 551 memberIndex, |
| 552 isStatic: false, isExternal: false, isAbstract: false); | 552 containingClass.closureClassEntity.library, |
| 553 containingClass.closureClassEntity, |
| 554 Names.call, |
| 555 parameterStructure, |
| 556 asyncMarker, |
| 557 isStatic: false, |
| 558 isExternal: false, |
| 559 isAbstract: false); |
| 553 | 560 |
| 554 String get _kind => 'closure_call'; | 561 String get _kind => 'closure_call'; |
| 555 } | 562 } |
| 556 | 563 |
| 557 class JTypeVariable implements TypeVariableEntity, IndexedTypeVariable { | 564 class JTypeVariable implements TypeVariableEntity, IndexedTypeVariable { |
| 558 final int typeVariableIndex; | 565 final int typeVariableIndex; |
| 559 final Entity typeDeclaration; | 566 final Entity typeDeclaration; |
| 560 final String name; | 567 final String name; |
| 561 final int index; | 568 final int index; |
| 562 | 569 |
| 563 JTypeVariable( | 570 JTypeVariable( |
| 564 this.typeVariableIndex, this.typeDeclaration, this.name, this.index); | 571 this.typeVariableIndex, this.typeDeclaration, this.name, this.index); |
| 565 | 572 |
| 566 String toString() => | 573 String toString() => |
| 567 '${jsElementPrefix}type_variable(${typeDeclaration.name}.$name)'; | 574 '${jsElementPrefix}type_variable(${typeDeclaration.name}.$name)'; |
| 568 } | 575 } |
| OLD | NEW |