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

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

Issue 1080503003: Move getElementAt() to CompilationUnitElement. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 | Annotate | Revision Log
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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.element_handle; 8 library engine.element_handle;
9 9
10 import 'ast.dart'; 10 import 'ast.dart';
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 @override 212 @override
213 String get uri => actualElement.uri; 213 String get uri => actualElement.uri;
214 214
215 @override 215 @override
216 int get uriEnd => actualElement.uriEnd; 216 int get uriEnd => actualElement.uriEnd;
217 217
218 @override 218 @override
219 int get uriOffset => actualElement.uriOffset; 219 int get uriOffset => actualElement.uriOffset;
220 220
221 @override 221 @override
222 Element getElementAt(int offset) {
223 return actualElement.getElementAt(offset);
224 }
225
226 @override
222 ClassElement getEnum(String enumName) => actualElement.getEnum(enumName); 227 ClassElement getEnum(String enumName) => actualElement.getEnum(enumName);
223 228
224 @override 229 @override
225 ClassElement getType(String className) => actualElement.getType(className); 230 ClassElement getType(String className) => actualElement.getType(className);
226 } 231 }
227 232
228 /** 233 /**
229 * Instances of the class `ConstructorElementHandle` implement a handle to a 234 * Instances of the class `ConstructorElementHandle` implement a handle to a
230 * `ConstructorElement`. 235 * `ConstructorElement`.
231 */ 236 */
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 @override 801 @override
797 Namespace get publicNamespace => actualElement.publicNamespace; 802 Namespace get publicNamespace => actualElement.publicNamespace;
798 803
799 @override 804 @override
800 List<CompilationUnitElement> get units => actualElement.units; 805 List<CompilationUnitElement> get units => actualElement.units;
801 806
802 @override 807 @override
803 List<LibraryElement> get visibleLibraries => actualElement.visibleLibraries; 808 List<LibraryElement> get visibleLibraries => actualElement.visibleLibraries;
804 809
805 @override 810 @override
806 Element getElementAt(int offset) => actualElement.getElementAt(offset);
807
808 @override
809 List<ImportElement> getImportsWithPrefix(PrefixElement prefixElement) => 811 List<ImportElement> getImportsWithPrefix(PrefixElement prefixElement) =>
810 actualElement.getImportsWithPrefix(prefixElement); 812 actualElement.getImportsWithPrefix(prefixElement);
811 813
812 @override 814 @override
813 ClassElement getType(String className) => actualElement.getType(className); 815 ClassElement getType(String className) => actualElement.getType(className);
814 816
815 @override 817 @override
816 bool isUpToDate(int timeStamp) => actualElement.isUpToDate(timeStamp); 818 bool isUpToDate(int timeStamp) => actualElement.isUpToDate(timeStamp);
817 } 819 }
818 820
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
1089 DartType get type => actualElement.type; 1091 DartType get type => actualElement.type;
1090 } 1092 }
1091 /** 1093 /**
1092 * TODO(scheglov) invalid implementation 1094 * TODO(scheglov) invalid implementation
1093 */ 1095 */
1094 class WeakReference<T> { 1096 class WeakReference<T> {
1095 final T value; 1097 final T value;
1096 WeakReference(this.value); 1098 WeakReference(this.value);
1097 T get() => value; 1099 T get() => value;
1098 } 1100 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/element.dart ('k') | pkg/analyzer/lib/src/generated/incremental_resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698