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

Side by Side Diff: pkg/analyzer/lib/src/dart/element/handle.dart

Issue 2982993003: Remove UriReferencedElement with its uri/uriOffset/uriEnd properties. (Closed)
Patch Set: Created 3 years, 5 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/ast/ast.dart'; 7 import 'package:analyzer/dart/ast/ast.dart';
8 import 'package:analyzer/dart/constant/value.dart'; 8 import 'package:analyzer/dart/constant/value.dart';
9 import 'package:analyzer/dart/element/element.dart'; 9 import 'package:analyzer/dart/element/element.dart';
10 import 'package:analyzer/dart/element/type.dart'; 10 import 'package:analyzer/dart/element/type.dart';
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 Source get source => actualElement.source; 215 Source get source => actualElement.source;
216 216
217 @override 217 @override
218 List<TopLevelVariableElement> get topLevelVariables => 218 List<TopLevelVariableElement> get topLevelVariables =>
219 actualElement.topLevelVariables; 219 actualElement.topLevelVariables;
220 220
221 @override 221 @override
222 List<ClassElement> get types => actualElement.types; 222 List<ClassElement> get types => actualElement.types;
223 223
224 @override 224 @override
225 String get uri => actualElement.uri;
226
227 @override
228 int get uriEnd => actualElement.uriEnd;
229
230 @override
231 int get uriOffset => actualElement.uriOffset;
232
233 @override
234 CompilationUnit computeNode() => actualElement.computeNode(); 225 CompilationUnit computeNode() => actualElement.computeNode();
235 226
236 @override 227 @override
237 ClassElement getEnum(String enumName) => actualElement.getEnum(enumName); 228 ClassElement getEnum(String enumName) => actualElement.getEnum(enumName);
238 229
239 @override 230 @override
240 ClassElement getType(String className) => actualElement.getType(className); 231 ClassElement getType(String className) => actualElement.getType(className);
241 } 232 }
242 233
243 /** 234 /**
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 ExportElement get actualElement => super.actualElement as ExportElement; 525 ExportElement get actualElement => super.actualElement as ExportElement;
535 526
536 @override 527 @override
537 List<NamespaceCombinator> get combinators => actualElement.combinators; 528 List<NamespaceCombinator> get combinators => actualElement.combinators;
538 529
539 @override 530 @override
540 LibraryElement get exportedLibrary => actualElement.exportedLibrary; 531 LibraryElement get exportedLibrary => actualElement.exportedLibrary;
541 532
542 @override 533 @override
543 ElementKind get kind => ElementKind.EXPORT; 534 ElementKind get kind => ElementKind.EXPORT;
544
545 @override
546 String get uri => actualElement.uri;
547
548 @override
549 int get uriEnd => actualElement.uriEnd;
550
551 @override
552 int get uriOffset => actualElement.uriOffset;
553 } 535 }
554 536
555 /** 537 /**
556 * A handle to a [FieldElement]. 538 * A handle to a [FieldElement].
557 */ 539 */
558 class FieldElementHandle extends PropertyInducingElementHandle 540 class FieldElementHandle extends PropertyInducingElementHandle
559 implements FieldElement { 541 implements FieldElement {
560 /** 542 /**
561 * Initialize a newly created element handle to represent the element at the 543 * Initialize a newly created element handle to represent the element at the
562 * given [_location]. The [_resynthesizer] will be used to resynthesize the 544 * given [_location]. The [_resynthesizer] will be used to resynthesize the
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 bool get isDeferred => actualElement.isDeferred; 703 bool get isDeferred => actualElement.isDeferred;
722 704
723 @override 705 @override
724 ElementKind get kind => ElementKind.IMPORT; 706 ElementKind get kind => ElementKind.IMPORT;
725 707
726 @override 708 @override
727 PrefixElement get prefix => actualElement.prefix; 709 PrefixElement get prefix => actualElement.prefix;
728 710
729 @override 711 @override
730 int get prefixOffset => actualElement.prefixOffset; 712 int get prefixOffset => actualElement.prefixOffset;
731
732 @override
733 String get uri => actualElement.uri;
734
735 @override
736 int get uriEnd => actualElement.uriEnd;
737
738 @override
739 int get uriOffset => actualElement.uriOffset;
740 } 713 }
741 714
742 /** 715 /**
743 * A handle to a [LabelElement]. 716 * A handle to a [LabelElement].
744 */ 717 */
745 class LabelElementHandle extends ElementHandle implements LabelElement { 718 class LabelElementHandle extends ElementHandle implements LabelElement {
746 /** 719 /**
747 * Initialize a newly created element handle to represent the element at the 720 * Initialize a newly created element handle to represent the element at the
748 * given [_location]. The [_resynthesizer] will be used to resynthesize the 721 * given [_location]. The [_resynthesizer] will be used to resynthesize the
749 * element when needed. 722 * element when needed.
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
1149 1122
1150 @override 1123 @override
1151 bool get isStatic => actualElement.isStatic; 1124 bool get isStatic => actualElement.isStatic;
1152 1125
1153 @override 1126 @override
1154 DartType get type => actualElement.type; 1127 DartType get type => actualElement.type;
1155 1128
1156 @override 1129 @override
1157 DartObject computeConstantValue() => actualElement.computeConstantValue(); 1130 DartObject computeConstantValue() => actualElement.computeConstantValue();
1158 } 1131 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698