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 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
888 | 888 |
889 @override | 889 @override |
890 MethodDeclaration computeNode() => actualElement.computeNode(); | 890 MethodDeclaration computeNode() => actualElement.computeNode(); |
891 } | 891 } |
892 | 892 |
893 /** | 893 /** |
894 * Instances of the class `ParameterElementHandle` implement a handle to a | 894 * Instances of the class `ParameterElementHandle` implement a handle to a |
895 * `ParameterElement`. | 895 * `ParameterElement`. |
896 */ | 896 */ |
897 class ParameterElementHandle extends VariableElementHandle | 897 class ParameterElementHandle extends VariableElementHandle |
| 898 with ParameterElementMixin |
898 implements ParameterElement { | 899 implements ParameterElement { |
899 /** | 900 /** |
900 * Initialize a newly created element handle to represent the given element. | 901 * Initialize a newly created element handle to represent the given element. |
901 * | 902 * |
902 * @param element the element being represented | 903 * @param element the element being represented |
903 */ | 904 */ |
904 ParameterElementHandle(ParameterElement element) : super(element); | 905 ParameterElementHandle(ParameterElement element) : super(element); |
905 | 906 |
906 @override | 907 @override |
907 ParameterElement get actualElement => super.actualElement as ParameterElement; | 908 ParameterElement get actualElement => super.actualElement as ParameterElement; |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1115 } | 1116 } |
1116 | 1117 |
1117 /** | 1118 /** |
1118 * TODO(scheglov) invalid implementation | 1119 * TODO(scheglov) invalid implementation |
1119 */ | 1120 */ |
1120 class WeakReference<T> { | 1121 class WeakReference<T> { |
1121 final T value; | 1122 final T value; |
1122 WeakReference(this.value); | 1123 WeakReference(this.value); |
1123 T get() => value; | 1124 T get() => value; |
1124 } | 1125 } |
OLD | NEW |