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

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

Issue 1847633002: Fix more strong mode errors in analyzer (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix copied comment Created 4 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
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 @override 88 @override
89 InterfaceType get type => actualElement.type; 89 InterfaceType get type => actualElement.type;
90 90
91 @override 91 @override
92 List<TypeParameterElement> get typeParameters => actualElement.typeParameters; 92 List<TypeParameterElement> get typeParameters => actualElement.typeParameters;
93 93
94 @override 94 @override
95 ConstructorElement get unnamedConstructor => actualElement.unnamedConstructor; 95 ConstructorElement get unnamedConstructor => actualElement.unnamedConstructor;
96 96
97 @override 97 @override
98 NamedCompilationUnitMember computeNode() => super.computeNode();
99
100 @override
98 FieldElement getField(String fieldName) => actualElement.getField(fieldName); 101 FieldElement getField(String fieldName) => actualElement.getField(fieldName);
99 102
100 @override 103 @override
101 PropertyAccessorElement getGetter(String getterName) => 104 PropertyAccessorElement getGetter(String getterName) =>
102 actualElement.getGetter(getterName); 105 actualElement.getGetter(getterName);
103 106
104 @override 107 @override
105 MethodElement getMethod(String methodName) => 108 MethodElement getMethod(String methodName) =>
106 actualElement.getMethod(methodName); 109 actualElement.getMethod(methodName);
107 110
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 ParameterKind get parameterKind => actualElement.parameterKind; 891 ParameterKind get parameterKind => actualElement.parameterKind;
889 892
890 @override 893 @override
891 List<ParameterElement> get parameters => actualElement.parameters; 894 List<ParameterElement> get parameters => actualElement.parameters;
892 895
893 @override 896 @override
894 List<TypeParameterElement> get typeParameters => actualElement.typeParameters; 897 List<TypeParameterElement> get typeParameters => actualElement.typeParameters;
895 898
896 @override 899 @override
897 SourceRange get visibleRange => actualElement.visibleRange; 900 SourceRange get visibleRange => actualElement.visibleRange;
901
902 @override
903 FormalParameter computeNode() => super.computeNode();
898 } 904 }
899 905
900 /** 906 /**
901 * A handle to a [PrefixElement]. 907 * A handle to a [PrefixElement].
902 */ 908 */
903 class PrefixElementHandle extends ElementHandle implements PrefixElement { 909 class PrefixElementHandle extends ElementHandle implements PrefixElement {
904 /** 910 /**
905 * Initialize a newly created element handle to represent the element at the 911 * Initialize a newly created element handle to represent the element at the
906 * given [_location]. The [_resynthesizer] will be used to resynthesize the 912 * given [_location]. The [_resynthesizer] will be used to resynthesize the
907 * element when needed. 913 * element when needed.
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 * Initialize a newly created element handle to represent the element at the 1012 * Initialize a newly created element handle to represent the element at the
1007 * given [_location]. The [_resynthesizer] will be used to resynthesize the 1013 * given [_location]. The [_resynthesizer] will be used to resynthesize the
1008 * element when needed. 1014 * element when needed.
1009 */ 1015 */
1010 TopLevelVariableElementHandle( 1016 TopLevelVariableElementHandle(
1011 ElementResynthesizer resynthesizer, ElementLocation location) 1017 ElementResynthesizer resynthesizer, ElementLocation location)
1012 : super(resynthesizer, location); 1018 : super(resynthesizer, location);
1013 1019
1014 @override 1020 @override
1015 ElementKind get kind => ElementKind.TOP_LEVEL_VARIABLE; 1021 ElementKind get kind => ElementKind.TOP_LEVEL_VARIABLE;
1022
1023 @override
1024 VariableDeclaration computeNode() => super.computeNode();
1016 } 1025 }
1017 1026
1018 /** 1027 /**
1019 * A handle to a [TypeParameterElement]. 1028 * A handle to a [TypeParameterElement].
1020 */ 1029 */
1021 class TypeParameterElementHandle extends ElementHandle 1030 class TypeParameterElementHandle extends ElementHandle
1022 implements TypeParameterElement { 1031 implements TypeParameterElement {
1023 /** 1032 /**
1024 * Initialize a newly created element handle to represent the element at the 1033 * Initialize a newly created element handle to represent the element at the
1025 * given [_location]. The [_resynthesizer] will be used to resynthesize the 1034 * given [_location]. The [_resynthesizer] will be used to resynthesize the
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 1077
1069 @override 1078 @override
1070 FunctionElement get initializer => actualElement.initializer; 1079 FunctionElement get initializer => actualElement.initializer;
1071 1080
1072 @override 1081 @override
1073 bool get isConst => actualElement.isConst; 1082 bool get isConst => actualElement.isConst;
1074 1083
1075 @override 1084 @override
1076 bool get isFinal => actualElement.isFinal; 1085 bool get isFinal => actualElement.isFinal;
1077 1086
1087 @deprecated
1078 @override 1088 @override
1079 bool get isPotentiallyMutatedInClosure => 1089 bool get isPotentiallyMutatedInClosure =>
1080 actualElement.isPotentiallyMutatedInClosure; 1090 actualElement.isPotentiallyMutatedInClosure;
1081 1091
1092 @deprecated
1082 @override 1093 @override
1083 bool get isPotentiallyMutatedInScope => 1094 bool get isPotentiallyMutatedInScope =>
1084 actualElement.isPotentiallyMutatedInScope; 1095 actualElement.isPotentiallyMutatedInScope;
1085 1096
1086 @override 1097 @override
1087 bool get isStatic => actualElement.isStatic; 1098 bool get isStatic => actualElement.isStatic;
1088 1099
1089 @override 1100 @override
1090 DartType get type => actualElement.type; 1101 DartType get type => actualElement.type;
1091 } 1102 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698