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

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

Issue 1863803002: Validation of `@required` params (#26182). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 @override 64 @override
65 bool get isMixinApplication => actualElement.isMixinApplication; 65 bool get isMixinApplication => actualElement.isMixinApplication;
66 66
67 @override 67 @override
68 bool get isOrInheritsProxy => actualElement.isOrInheritsProxy; 68 bool get isOrInheritsProxy => actualElement.isOrInheritsProxy;
69 69
70 @override 70 @override
71 bool get isProxy => actualElement.isProxy; 71 bool get isProxy => actualElement.isProxy;
72 72
73 @override 73 @override
74 bool get isRequired => actualElement.isRequired;
75
76 @override
74 bool get isValidMixin => actualElement.isValidMixin; 77 bool get isValidMixin => actualElement.isValidMixin;
75 78
76 @override 79 @override
77 ElementKind get kind => ElementKind.CLASS; 80 ElementKind get kind => ElementKind.CLASS;
78 81
79 @override 82 @override
80 List<MethodElement> get methods => actualElement.methods; 83 List<MethodElement> get methods => actualElement.methods;
81 84
82 @override 85 @override
83 List<InterfaceType> get mixins => actualElement.mixins; 86 List<InterfaceType> get mixins => actualElement.mixins;
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 @override 358 @override
356 bool get isPrivate => actualElement.isPrivate; 359 bool get isPrivate => actualElement.isPrivate;
357 360
358 @override 361 @override
359 bool get isProtected => actualElement.isProtected; 362 bool get isProtected => actualElement.isProtected;
360 363
361 @override 364 @override
362 bool get isPublic => actualElement.isPublic; 365 bool get isPublic => actualElement.isPublic;
363 366
364 @override 367 @override
368 bool get isRequired => actualElement.isRequired;
369
370 @override
365 bool get isSynthetic => actualElement.isSynthetic; 371 bool get isSynthetic => actualElement.isSynthetic;
366 372
367 @override 373 @override
368 LibraryElement get library => 374 LibraryElement get library =>
369 getAncestor((element) => element is LibraryElement); 375 getAncestor((element) => element is LibraryElement);
370 376
371 @override 377 @override
372 ElementLocation get location => _location; 378 ElementLocation get location => _location;
373 379
374 @override 380 @override
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
1093 @override 1099 @override
1094 bool get isPotentiallyMutatedInScope => 1100 bool get isPotentiallyMutatedInScope =>
1095 actualElement.isPotentiallyMutatedInScope; 1101 actualElement.isPotentiallyMutatedInScope;
1096 1102
1097 @override 1103 @override
1098 bool get isStatic => actualElement.isStatic; 1104 bool get isStatic => actualElement.isStatic;
1099 1105
1100 @override 1106 @override
1101 DartType get type => actualElement.type; 1107 DartType get type => actualElement.type;
1102 } 1108 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698