Skip to content

Commit f34a2ed

Browse files
committed
Elements. For FormalParameterFragment enclosingFragment can be another FormalParameterFragment, not only ExecutableFragment.
Change-Id: I2aa32b088ad77a41e4b40d406488a12da126f52d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/398945 Reviewed-by: Phil Quitslund <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]>
1 parent 074e9c3 commit f34a2ed

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

pkg/analyzer/lib/dart/element/element2.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2183,9 +2183,6 @@ abstract class PromotableFragment implements VariableFragment {
21832183
@override
21842184
PromotableElement2 get element;
21852185

2186-
@override
2187-
ExecutableFragment? get enclosingFragment;
2188-
21892186
@override
21902187
PromotableFragment? get nextFragment;
21912188

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8869,8 +8869,7 @@ class ParameterElementImpl extends VariableElementImpl
88698869
set element(FormalParameterElement element) => _element = element;
88708870

88718871
@override
8872-
ExecutableFragment? get enclosingFragment =>
8873-
enclosingElement3 as ExecutableFragment?;
8872+
Fragment? get enclosingFragment => enclosingElement3 as Fragment?;
88748873

88758874
@override
88768875
bool get hasDefaultValue {

0 commit comments

Comments
 (0)