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 analyzer.src.generated.element_handle; | 5 library analyzer.src.generated.element_handle; |
6 | 6 |
7 import 'package:analyzer/dart/element/element.dart'; | 7 import 'package:analyzer/dart/element/element.dart'; |
8 import 'package:analyzer/dart/element/type.dart'; | 8 import 'package:analyzer/dart/element/type.dart'; |
9 import 'package:analyzer/src/dart/element/element.dart'; | 9 import 'package:analyzer/src/dart/element/element.dart'; |
10 import 'package:analyzer/dart/ast/ast.dart'; | 10 import 'package:analyzer/dart/ast/ast.dart'; |
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
908 : super(resynthesizer, location); | 908 : super(resynthesizer, location); |
909 | 909 |
910 @override | 910 @override |
911 PrefixElement get actualElement => super.actualElement as PrefixElement; | 911 PrefixElement get actualElement => super.actualElement as PrefixElement; |
912 | 912 |
913 @override | 913 @override |
914 LibraryElement get enclosingElement => | 914 LibraryElement get enclosingElement => |
915 super.enclosingElement as LibraryElement; | 915 super.enclosingElement as LibraryElement; |
916 | 916 |
917 @override | 917 @override |
918 List<LibraryElement> get importedLibraries => actualElement.importedLibraries; | 918 List<LibraryElement> get importedLibraries => LibraryElement.EMPTY_LIST; |
919 | 919 |
920 @override | 920 @override |
921 ElementKind get kind => ElementKind.PREFIX; | 921 ElementKind get kind => ElementKind.PREFIX; |
922 } | 922 } |
923 | 923 |
924 /** | 924 /** |
925 * Instances of the class `PropertyAccessorElementHandle` implement a handle to
a | 925 * Instances of the class `PropertyAccessorElementHandle` implement a handle to
a |
926 * `PropertyAccessorElement`. | 926 * `PropertyAccessorElement`. |
927 */ | 927 */ |
928 class PropertyAccessorElementHandle extends ExecutableElementHandle | 928 class PropertyAccessorElementHandle extends ExecutableElementHandle |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1093 } | 1093 } |
1094 | 1094 |
1095 /** | 1095 /** |
1096 * TODO(scheglov) invalid implementation | 1096 * TODO(scheglov) invalid implementation |
1097 */ | 1097 */ |
1098 class WeakReference<T> { | 1098 class WeakReference<T> { |
1099 final T value; | 1099 final T value; |
1100 WeakReference(this.value); | 1100 WeakReference(this.value); |
1101 T get() => value; | 1101 T get() => value; |
1102 } | 1102 } |
OLD | NEW |