Skip to content

Commit 733701b

Browse files
scheglovCommit Queue
authored andcommitted
Elements. Improve return types for a few ElementImpl.baseElement implementations.
Change-Id: Ifcf68066800befb041423a214d19128c5508535e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/391280 Reviewed-by: Brian Wilkerson <[email protected]> Reviewed-by: Samuel Rawlins <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
1 parent 1a9082c commit 733701b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/analyzer/lib/src/dart/element/element.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2398,7 +2398,7 @@ abstract class ElementImpl implements Element, Element2 {
23982398
}
23992399

24002400
@override
2401-
Element2? get baseElement => this;
2401+
Element2 get baseElement => this;
24022402

24032403
@override
24042404
List<Element> get children => const [];
@@ -3160,7 +3160,7 @@ abstract class ElementImpl2 implements Element2 {
31603160
final int id = ElementImpl._NEXT_ID++;
31613161

31623162
@override
3163-
Element2? get baseElement => this;
3163+
Element2 get baseElement => this;
31643164

31653165
@override
31663166
List<Element2> get children2 => const [];
@@ -5013,7 +5013,7 @@ class GetterElementImpl extends ExecutableElementImpl2
50135013
}
50145014

50155015
@override
5016-
GetterElement get baseElement => super.baseElement as GetterElement;
5016+
GetterElement get baseElement => this;
50175017

50185018
@override
50195019
SetterElement? get correspondingSetter2 =>
@@ -6955,7 +6955,7 @@ mixin MaybeAugmentedInstanceElementMixin
69556955
List<PropertyAccessorElement> get accessors;
69566956

69576957
@override
6958-
Element2? get baseElement => declaration.baseElement;
6958+
InstanceElement2 get baseElement => this;
69596959

69606960
@override
69616961
List<Element2> get children2 {

0 commit comments

Comments
 (0)