@@ -10813,13 +10813,18 @@ class RedirectingConstructorInvocationImpl extends ConstructorInitializerImpl
1081310813@experimental
1081410814class RelationalPatternImpl extends DartPatternImpl
1081510815 implements RelationalPattern {
10816- @override
10817- final ExpressionImpl operand;
10816+ ExpressionImpl _operand;
1081810817
1081910818 @override
1082010819 final Token operator ;
1082110820
10822- RelationalPatternImpl ({required this .operator , required this .operand}) {
10821+ @override
10822+ MethodElement ? element;
10823+
10824+ RelationalPatternImpl ({
10825+ required this .operator ,
10826+ required ExpressionImpl operand,
10827+ }) : _operand = operand {
1082310828 _becomeParentOf (operand);
1082410829 }
1082510830
@@ -10829,6 +10834,13 @@ class RelationalPatternImpl extends DartPatternImpl
1082910834 @override
1083010835 Token get endToken => operand.endToken;
1083110836
10837+ @override
10838+ ExpressionImpl get operand => _operand;
10839+
10840+ set operand (ExpressionImpl operand) {
10841+ _operand = _becomeParentOf (operand);
10842+ }
10843+
1083210844 @override
1083310845 ChildEntities get _childEntities => super ._childEntities
1083410846 ..addToken ('operator' , operator )
@@ -10847,7 +10859,10 @@ class RelationalPatternImpl extends DartPatternImpl
1084710859 DartType matchedType,
1084810860 Map <PromotableElement , VariableTypeInfo <AstNode , DartType >> typeInfos,
1084910861 MatchContext <AstNode , Expression > context) {
10850- // TODO(scheglov) https://github.com/dart-lang/sdk/issues/50066
10862+ resolverVisitor.resolveRelationalPattern (
10863+ node: this ,
10864+ matchedType: matchedType,
10865+ );
1085110866 }
1085210867
1085310868 @override
0 commit comments