| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 import 'common/names.dart' show Identifiers; | 5 import 'common/names.dart' show Identifiers; |
| 6 import 'common/resolution.dart' show ParsingContext, Resolution; | 6 import 'common/resolution.dart' show ParsingContext, Resolution; |
| 7 import 'common/tasks.dart' show CompilerTask, Measurer; | 7 import 'common/tasks.dart' show CompilerTask, Measurer; |
| 8 import 'common.dart'; | 8 import 'common.dart'; |
| 9 import 'compiler.dart' show Compiler; | 9 import 'compiler.dart' show Compiler; |
| 10 import 'constants/expressions.dart'; | 10 import 'constants/expressions.dart'; |
| (...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 final LocalFunctionElement expression; | 592 final LocalFunctionElement expression; |
| 593 final FunctionExpression node; | 593 final FunctionExpression node; |
| 594 final TreeElements treeElements; | 594 final TreeElements treeElements; |
| 595 | 595 |
| 596 SynthesizedCallMethodElementX(String name, LocalFunctionElement other, | 596 SynthesizedCallMethodElementX(String name, LocalFunctionElement other, |
| 597 ClosureClassElement enclosing, this.node, this.treeElements) | 597 ClosureClassElement enclosing, this.node, this.treeElements) |
| 598 : expression = other, | 598 : expression = other, |
| 599 super(name, other.kind, Modifiers.EMPTY, enclosing) { | 599 super(name, other.kind, Modifiers.EMPTY, enclosing) { |
| 600 asyncMarker = other.asyncMarker; | 600 asyncMarker = other.asyncMarker; |
| 601 functionSignature = other.functionSignature; | 601 functionSignature = other.functionSignature; |
| 602 expression.callMethod = this; |
| 602 } | 603 } |
| 603 | 604 |
| 604 /// Use [closureClass] instead. | 605 /// Use [closureClass] instead. |
| 605 @deprecated | 606 @deprecated |
| 606 get enclosingElement => super.enclosingElement; | 607 get enclosingElement => super.enclosingElement; |
| 607 | 608 |
| 608 ClosureClassElement get closureClass => super.enclosingElement; | 609 ClosureClassElement get closureClass => super.enclosingElement; |
| 609 | 610 |
| 610 MemberElement get memberContext { | 611 MemberElement get memberContext { |
| 611 return closureClass.methodElement.memberContext; | 612 return closureClass.methodElement.memberContext; |
| (...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1525 /// | 1526 /// |
| 1526 /// Move the below classes to a JS model eventually. | 1527 /// Move the below classes to a JS model eventually. |
| 1527 /// | 1528 /// |
| 1528 abstract class JSEntity implements MemberEntity { | 1529 abstract class JSEntity implements MemberEntity { |
| 1529 Local get declaredEntity; | 1530 Local get declaredEntity; |
| 1530 } | 1531 } |
| 1531 | 1532 |
| 1532 abstract class PrivatelyNamedJSEntity implements JSEntity { | 1533 abstract class PrivatelyNamedJSEntity implements JSEntity { |
| 1533 Entity get rootOfScope; | 1534 Entity get rootOfScope; |
| 1534 } | 1535 } |
| OLD | NEW |