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

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

Issue 946023003: Fix for searching constructor references. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 | 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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 @override 253 @override
254 bool get isDefaultConstructor => actualElement.isDefaultConstructor; 254 bool get isDefaultConstructor => actualElement.isDefaultConstructor;
255 255
256 @override 256 @override
257 bool get isFactory => actualElement.isFactory; 257 bool get isFactory => actualElement.isFactory;
258 258
259 @override 259 @override
260 ElementKind get kind => ElementKind.CONSTRUCTOR; 260 ElementKind get kind => ElementKind.CONSTRUCTOR;
261 261
262 @override 262 @override
263 int get nameEnd => actualElement.nameEnd;
264
265 @override
263 ConstructorDeclaration get node => actualElement.node; 266 ConstructorDeclaration get node => actualElement.node;
264 267
265 @override 268 @override
269 int get periodOffset => actualElement.periodOffset;
270
271 @override
266 ConstructorElement get redirectedConstructor => 272 ConstructorElement get redirectedConstructor =>
267 actualElement.redirectedConstructor; 273 actualElement.redirectedConstructor;
268 } 274 }
269 275
270 /** 276 /**
271 * The abstract class `ElementHandle` implements the behavior common to objects that implement 277 * The abstract class `ElementHandle` implements the behavior common to objects that implement
272 * a handle to an [Element]. 278 * a handle to an [Element].
273 */ 279 */
274 abstract class ElementHandle implements Element { 280 abstract class ElementHandle implements Element {
275 /** 281 /**
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 */ 580 */
575 FieldElementHandle(FieldElement element) : super(element); 581 FieldElementHandle(FieldElement element) : super(element);
576 582
577 @override 583 @override
578 FieldElement get actualElement => super.actualElement as FieldElement; 584 FieldElement get actualElement => super.actualElement as FieldElement;
579 585
580 @override 586 @override
581 ClassElement get enclosingElement => actualElement.enclosingElement; 587 ClassElement get enclosingElement => actualElement.enclosingElement;
582 588
583 @override 589 @override
590 bool get isEnumConstant => actualElement.isEnumConstant;
591
592 @override
584 bool get isStatic => actualElement.isStatic; 593 bool get isStatic => actualElement.isStatic;
585 594
586 @override 595 @override
587 ElementKind get kind => ElementKind.FIELD; 596 ElementKind get kind => ElementKind.FIELD;
588
589 @override
590 bool get isEnumConstant => actualElement.isEnumConstant;
591 } 597 }
592 598
593 /** 599 /**
594 * Instances of the class `FunctionElementHandle` implement a handle to a 600 * Instances of the class `FunctionElementHandle` implement a handle to a
595 * `FunctionElement`. 601 * `FunctionElement`.
596 */ 602 */
597 class FunctionElementHandle extends ExecutableElementHandle implements 603 class FunctionElementHandle extends ExecutableElementHandle implements
598 FunctionElement { 604 FunctionElement {
599 /** 605 /**
600 * Initialize a newly created element handle to represent the given element. 606 * Initialize a newly created element handle to represent the given element.
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 DartType get type => actualElement.type; 1074 DartType get type => actualElement.type;
1069 } 1075 }
1070 /** 1076 /**
1071 * TODO(scheglov) invalid implementation 1077 * TODO(scheglov) invalid implementation
1072 */ 1078 */
1073 class WeakReference<T> { 1079 class WeakReference<T> {
1074 final T value; 1080 final T value;
1075 WeakReference(this.value); 1081 WeakReference(this.value);
1076 T get() => value; 1082 T get() => value;
1077 } 1083 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/element.dart ('k') | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698