| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 engine.element_handle; | 5 library engine.element_handle; |
| 6 | 6 |
| 7 import 'ast.dart'; | 7 import 'ast.dart'; |
| 8 import 'element.dart'; | 8 import 'element.dart'; |
| 9 import 'engine.dart'; | 9 import 'engine.dart'; |
| 10 import 'java_core.dart'; | 10 import 'java_core.dart'; |
| (...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 @override | 603 @override |
| 604 FieldElement get actualElement => super.actualElement as FieldElement; | 604 FieldElement get actualElement => super.actualElement as FieldElement; |
| 605 | 605 |
| 606 @override | 606 @override |
| 607 ClassElement get enclosingElement => actualElement.enclosingElement; | 607 ClassElement get enclosingElement => actualElement.enclosingElement; |
| 608 | 608 |
| 609 @override | 609 @override |
| 610 bool get isEnumConstant => actualElement.isEnumConstant; | 610 bool get isEnumConstant => actualElement.isEnumConstant; |
| 611 | 611 |
| 612 @override | 612 @override |
| 613 bool get isStatic => actualElement.isStatic; | |
| 614 | |
| 615 @override | |
| 616 ElementKind get kind => ElementKind.FIELD; | 613 ElementKind get kind => ElementKind.FIELD; |
| 617 | 614 |
| 618 @override | 615 @override |
| 619 VariableDeclaration computeNode() => actualElement.computeNode(); | 616 VariableDeclaration computeNode() => actualElement.computeNode(); |
| 620 } | 617 } |
| 621 | 618 |
| 622 /** | 619 /** |
| 623 * Instances of the class `FunctionElementHandle` implement a handle to a | 620 * Instances of the class `FunctionElementHandle` implement a handle to a |
| 624 * `FunctionElement`. | 621 * `FunctionElement`. |
| 625 */ | 622 */ |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1014 : super(element); | 1011 : super(element); |
| 1015 | 1012 |
| 1016 @override | 1013 @override |
| 1017 PropertyInducingElement get actualElement => | 1014 PropertyInducingElement get actualElement => |
| 1018 super.actualElement as PropertyInducingElement; | 1015 super.actualElement as PropertyInducingElement; |
| 1019 | 1016 |
| 1020 @override | 1017 @override |
| 1021 PropertyAccessorElement get getter => actualElement.getter; | 1018 PropertyAccessorElement get getter => actualElement.getter; |
| 1022 | 1019 |
| 1023 @override | 1020 @override |
| 1024 bool get isStatic => actualElement.isStatic; | |
| 1025 | |
| 1026 @override | |
| 1027 DartType get propagatedType => actualElement.propagatedType; | 1021 DartType get propagatedType => actualElement.propagatedType; |
| 1028 | 1022 |
| 1029 @override | 1023 @override |
| 1030 PropertyAccessorElement get setter => actualElement.setter; | 1024 PropertyAccessorElement get setter => actualElement.setter; |
| 1031 } | 1025 } |
| 1032 | 1026 |
| 1033 /** | 1027 /** |
| 1034 * Instances of the class `TopLevelVariableElementHandle` implement a handle to
a | 1028 * Instances of the class `TopLevelVariableElementHandle` implement a handle to
a |
| 1035 * `TopLevelVariableElement`. | 1029 * `TopLevelVariableElement`. |
| 1036 */ | 1030 */ |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1105 | 1099 |
| 1106 @override | 1100 @override |
| 1107 bool get isPotentiallyMutatedInClosure => | 1101 bool get isPotentiallyMutatedInClosure => |
| 1108 actualElement.isPotentiallyMutatedInClosure; | 1102 actualElement.isPotentiallyMutatedInClosure; |
| 1109 | 1103 |
| 1110 @override | 1104 @override |
| 1111 bool get isPotentiallyMutatedInScope => | 1105 bool get isPotentiallyMutatedInScope => |
| 1112 actualElement.isPotentiallyMutatedInScope; | 1106 actualElement.isPotentiallyMutatedInScope; |
| 1113 | 1107 |
| 1114 @override | 1108 @override |
| 1109 bool get isStatic => actualElement.isStatic; |
| 1110 |
| 1111 @override |
| 1115 DartType get type => actualElement.type; | 1112 DartType get type => actualElement.type; |
| 1116 } | 1113 } |
| 1117 | 1114 |
| 1118 /** | 1115 /** |
| 1119 * TODO(scheglov) invalid implementation | 1116 * TODO(scheglov) invalid implementation |
| 1120 */ | 1117 */ |
| 1121 class WeakReference<T> { | 1118 class WeakReference<T> { |
| 1122 final T value; | 1119 final T value; |
| 1123 WeakReference(this.value); | 1120 WeakReference(this.value); |
| 1124 T get() => value; | 1121 T get() => value; |
| 1125 } | 1122 } |
| OLD | NEW |