@@ -132,6 +132,8 @@ private module Cached {
132132 TFloatLiteral ( Ruby:: Float g ) { not any ( Ruby:: Rational r ) .getChild ( ) = g } or
133133 TForExpr ( Ruby:: For g ) or
134134 TForIn ( Ruby:: In g ) or // TODO REMOVE
135+ TForwardParameter ( Ruby:: ForwardParameter g ) or
136+ TForwardArgument ( Ruby:: ForwardArgument g ) or
135137 TGEExpr ( Ruby:: Binary g ) { g instanceof @ruby_binary_rangleequal } or
136138 TGTExpr ( Ruby:: Binary g ) { g instanceof @ruby_binary_rangle } or
137139 TGlobalVariableAccessReal ( Ruby:: GlobalVariable g , AST:: GlobalVariable v ) {
@@ -340,6 +342,8 @@ private module Cached {
340342 n = TFloatLiteral ( result ) or
341343 n = TForExpr ( result ) or
342344 n = TForIn ( result ) or // TODO REMOVE
345+ n = TForwardArgument ( result ) or
346+ n = TForwardParameter ( result ) or
343347 n = TGEExpr ( result ) or
344348 n = TGTExpr ( result ) or
345349 n = TGlobalVariableAccessReal ( result , _) or
@@ -550,7 +554,8 @@ class TSelf = TSelfReal or TSelfSynth;
550554class TExpr =
551555 TSelf or TArgumentList or TRescueClause or TRescueModifierExpr or TPair or TStringConcatenation or
552556 TCall or TBlockArgument or TConstantAccess or TControlExpr or TWhenExpr or TLiteral or
553- TCallable or TVariableAccess or TStmtSequence or TOperation or TSimpleParameter ;
557+ TCallable or TVariableAccess or TStmtSequence or TOperation or TSimpleParameter or
558+ TForwardArgument ;
554559
555560class TSplatExpr = TSplatExprReal or TSplatExprSynth ;
556561
@@ -677,7 +682,7 @@ class TReturningStmt = TReturnStmt or TBreakStmt or TNextStmt;
677682
678683class TParameter =
679684 TPatternParameter or TBlockParameter or THashSplatParameter or TKeywordParameter or
680- TOptionalParameter or TSplatParameter ;
685+ TOptionalParameter or TSplatParameter or TForwardParameter ;
681686
682687class TPatternParameter = TSimpleParameter or TTuplePatternParameter ;
683688
0 commit comments