| 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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 String toString() => "ClosureFieldElement($name)"; | 456 String toString() => "ClosureFieldElement($name)"; |
| 457 | 457 |
| 458 accept(ElementVisitor visitor, arg) { | 458 accept(ElementVisitor visitor, arg) { |
| 459 return visitor.visitClosureFieldElement(this, arg); | 459 return visitor.visitClosureFieldElement(this, arg); |
| 460 } | 460 } |
| 461 | 461 |
| 462 AnalyzableElement get analyzableElement => | 462 AnalyzableElement get analyzableElement => |
| 463 closureClass.methodElement.analyzableElement; | 463 closureClass.methodElement.analyzableElement; |
| 464 | 464 |
| 465 @override | 465 @override |
| 466 List<FunctionElement> get nestedClosures => const <FunctionElement>[]; | 466 List<MethodElement> get nestedClosures => const <MethodElement>[]; |
| 467 | 467 |
| 468 @override | 468 @override |
| 469 bool get hasConstant => false; | 469 bool get hasConstant => false; |
| 470 | 470 |
| 471 @override | 471 @override |
| 472 ConstantExpression get constant => null; | 472 ConstantExpression get constant => null; |
| 473 } | 473 } |
| 474 | 474 |
| 475 // TODO(ahe): These classes continuously cause problems. We need to find | 475 // TODO(ahe): These classes continuously cause problems. We need to find |
| 476 // a more general solution. | 476 // a more general solution. |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 | 585 |
| 586 @override | 586 @override |
| 587 Expression get initializer { | 587 Expression get initializer { |
| 588 throw new UnsupportedError("BoxFieldElement.initializer"); | 588 throw new UnsupportedError("BoxFieldElement.initializer"); |
| 589 } | 589 } |
| 590 | 590 |
| 591 @override | 591 @override |
| 592 MemberElement get memberContext => box.memberContext; | 592 MemberElement get memberContext => box.memberContext; |
| 593 | 593 |
| 594 @override | 594 @override |
| 595 List<FunctionElement> get nestedClosures => const <FunctionElement>[]; | 595 List<MethodElement> get nestedClosures => const <MethodElement>[]; |
| 596 | 596 |
| 597 @override | 597 @override |
| 598 VariableDefinitions get node { | 598 VariableDefinitions get node { |
| 599 throw new UnsupportedError("BoxFieldElement.node"); | 599 throw new UnsupportedError("BoxFieldElement.node"); |
| 600 } | 600 } |
| 601 | 601 |
| 602 @override | 602 @override |
| 603 ResolvedAst get resolvedAst { | 603 ResolvedAst get resolvedAst { |
| 604 throw new UnsupportedError("BoxFieldElement.resolvedAst"); | 604 throw new UnsupportedError("BoxFieldElement.resolvedAst"); |
| 605 } | 605 } |
| (...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1552 /// | 1552 /// |
| 1553 /// Move the below classes to a JS model eventually. | 1553 /// Move the below classes to a JS model eventually. |
| 1554 /// | 1554 /// |
| 1555 abstract class JSEntity implements MemberEntity { | 1555 abstract class JSEntity implements MemberEntity { |
| 1556 Local get declaredEntity; | 1556 Local get declaredEntity; |
| 1557 } | 1557 } |
| 1558 | 1558 |
| 1559 abstract class PrivatelyNamedJSEntity implements JSEntity { | 1559 abstract class PrivatelyNamedJSEntity implements JSEntity { |
| 1560 Entity get rootOfScope; | 1560 Entity get rootOfScope; |
| 1561 } | 1561 } |
| OLD | NEW |