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

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

Issue 1024553006: Issue 22962. Adding/removing method/accessor body is a declartion mismatch. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 ExecutableElementHandle(ExecutableElement element) : super(element); 495 ExecutableElementHandle(ExecutableElement element) : super(element);
496 496
497 @override 497 @override
498 ExecutableElement get actualElement => 498 ExecutableElement get actualElement =>
499 super.actualElement as ExecutableElement; 499 super.actualElement as ExecutableElement;
500 500
501 @override 501 @override
502 List<FunctionElement> get functions => actualElement.functions; 502 List<FunctionElement> get functions => actualElement.functions;
503 503
504 @override 504 @override
505 bool get isAbstract => actualElement.isAbstract;
506
507 @override
505 bool get isAsynchronous => actualElement.isAsynchronous; 508 bool get isAsynchronous => actualElement.isAsynchronous;
506 509
507 @override 510 @override
508 bool get isGenerator => actualElement.isGenerator; 511 bool get isGenerator => actualElement.isGenerator;
509 512
510 @override 513 @override
511 bool get isOperator => actualElement.isOperator; 514 bool get isOperator => actualElement.isOperator;
512 515
513 @override 516 @override
514 bool get isStatic => actualElement.isStatic; 517 bool get isStatic => actualElement.isStatic;
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 */ 849 */
847 MethodElementHandle(MethodElement element) : super(element); 850 MethodElementHandle(MethodElement element) : super(element);
848 851
849 @override 852 @override
850 MethodElement get actualElement => super.actualElement as MethodElement; 853 MethodElement get actualElement => super.actualElement as MethodElement;
851 854
852 @override 855 @override
853 ClassElement get enclosingElement => super.enclosingElement as ClassElement; 856 ClassElement get enclosingElement => super.enclosingElement as ClassElement;
854 857
855 @override 858 @override
856 bool get isAbstract => actualElement.isAbstract;
857
858 @override
859 bool get isStatic => actualElement.isStatic; 859 bool get isStatic => actualElement.isStatic;
860 860
861 @override 861 @override
862 ElementKind get kind => ElementKind.METHOD; 862 ElementKind get kind => ElementKind.METHOD;
863 863
864 @override 864 @override
865 MethodDeclaration get node => actualElement.node; 865 MethodDeclaration get node => actualElement.node;
866 } 866 }
867 867
868 /** 868 /**
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 945
946 @override 946 @override
947 PropertyAccessorElement get correspondingGetter => 947 PropertyAccessorElement get correspondingGetter =>
948 actualElement.correspondingGetter; 948 actualElement.correspondingGetter;
949 949
950 @override 950 @override
951 PropertyAccessorElement get correspondingSetter => 951 PropertyAccessorElement get correspondingSetter =>
952 actualElement.correspondingSetter; 952 actualElement.correspondingSetter;
953 953
954 @override 954 @override
955 bool get isAbstract => actualElement.isAbstract;
956
957 @override
958 bool get isGetter => actualElement.isGetter; 955 bool get isGetter => actualElement.isGetter;
959 956
960 @override 957 @override
961 bool get isSetter => actualElement.isSetter; 958 bool get isSetter => actualElement.isSetter;
962 959
963 @override 960 @override
964 ElementKind get kind { 961 ElementKind get kind {
965 if (isGetter) { 962 if (isGetter) {
966 return ElementKind.GETTER; 963 return ElementKind.GETTER;
967 } else { 964 } else {
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1081 DartType get type => actualElement.type; 1078 DartType get type => actualElement.type;
1082 } 1079 }
1083 /** 1080 /**
1084 * TODO(scheglov) invalid implementation 1081 * TODO(scheglov) invalid implementation
1085 */ 1082 */
1086 class WeakReference<T> { 1083 class WeakReference<T> {
1087 final T value; 1084 final T value;
1088 WeakReference(this.value); 1085 WeakReference(this.value);
1089 T get() => value; 1086 T get() => value;
1090 } 1087 }
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