Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: pkg/analyzer/lib/src/generated/element_handle.dart

Issue 1686863002: Deprecate PrefixElement.importedLibraries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/element.dart ('k') | pkg/analyzer/test/src/summary/resynthesize_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698