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

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

Issue 2991453002: Restore UriReferencedElement and 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
225 CompilationUnit computeNode() => actualElement.computeNode(); 234 CompilationUnit computeNode() => actualElement.computeNode();
226 235
227 @override 236 @override
228 ClassElement getEnum(String enumName) => actualElement.getEnum(enumName); 237 ClassElement getEnum(String enumName) => actualElement.getEnum(enumName);
229 238
230 @override 239 @override
231 ClassElement getType(String className) => actualElement.getType(className); 240 ClassElement getType(String className) => actualElement.getType(className);
232 } 241 }
233 242
234 /** 243 /**
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 ExportElement get actualElement => super.actualElement as ExportElement; 534 ExportElement get actualElement => super.actualElement as ExportElement;
526 535
527 @override 536 @override
528 List<NamespaceCombinator> get combinators => actualElement.combinators; 537 List<NamespaceCombinator> get combinators => actualElement.combinators;
529 538
530 @override 539 @override
531 LibraryElement get exportedLibrary => actualElement.exportedLibrary; 540 LibraryElement get exportedLibrary => actualElement.exportedLibrary;
532 541
533 @override 542 @override
534 ElementKind get kind => ElementKind.EXPORT; 543 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;
535 } 553 }
536 554
537 /** 555 /**
538 * A handle to a [FieldElement]. 556 * A handle to a [FieldElement].
539 */ 557 */
540 class FieldElementHandle extends PropertyInducingElementHandle 558 class FieldElementHandle extends PropertyInducingElementHandle
541 implements FieldElement { 559 implements FieldElement {
542 /** 560 /**
543 * Initialize a newly created element handle to represent the element at the 561 * Initialize a newly created element handle to represent the element at the
544 * given [_location]. The [_resynthesizer] will be used to resynthesize the 562 * given [_location]. The [_resynthesizer] will be used to resynthesize the
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 bool get isDeferred => actualElement.isDeferred; 721 bool get isDeferred => actualElement.isDeferred;
704 722
705 @override 723 @override
706 ElementKind get kind => ElementKind.IMPORT; 724 ElementKind get kind => ElementKind.IMPORT;
707 725
708 @override 726 @override
709 PrefixElement get prefix => actualElement.prefix; 727 PrefixElement get prefix => actualElement.prefix;
710 728
711 @override 729 @override
712 int get prefixOffset => actualElement.prefixOffset; 730 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;
713 } 740 }
714 741
715 /** 742 /**
716 * A handle to a [LabelElement]. 743 * A handle to a [LabelElement].
717 */ 744 */
718 class LabelElementHandle extends ElementHandle implements LabelElement { 745 class LabelElementHandle extends ElementHandle implements LabelElement {
719 /** 746 /**
720 * Initialize a newly created element handle to represent the element at the 747 * Initialize a newly created element handle to represent the element at the
721 * given [_location]. The [_resynthesizer] will be used to resynthesize the 748 * given [_location]. The [_resynthesizer] will be used to resynthesize the
722 * element when needed. 749 * element when needed.
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 1149
1123 @override 1150 @override
1124 bool get isStatic => actualElement.isStatic; 1151 bool get isStatic => actualElement.isStatic;
1125 1152
1126 @override 1153 @override
1127 DartType get type => actualElement.type; 1154 DartType get type => actualElement.type;
1128 1155
1129 @override 1156 @override
1130 DartObject computeConstantValue() => actualElement.computeConstantValue(); 1157 DartObject computeConstantValue() => actualElement.computeConstantValue();
1131 } 1158 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/element.dart ('k') | pkg/analyzer/lib/src/summary/resynthesize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698