@@ -238,7 +238,10 @@ private module Cached {
238238 TSelfSynth ( AST:: AstNode parent , int i , AST:: SelfVariable v ) {
239239 mkSynthChild ( SelfKind ( v ) , parent , i )
240240 } or
241- TSimpleParameter ( Ruby:: Identifier g ) { g instanceof Parameter:: Range } or
241+ TSimpleParameterReal ( Ruby:: Identifier g ) { g instanceof Parameter:: Range } or
242+ TSimpleParameterSynth ( AST:: AstNode parent , int i ) {
243+ mkSynthChild ( SimpleParameterKind ( ) , parent , i )
244+ } or
242245 TSimpleSymbolLiteral ( Ruby:: SimpleSymbol g ) or
243246 TSingletonClass ( Ruby:: SingletonClass g ) or
244247 TSingletonMethod ( Ruby:: SingletonMethod g ) or
@@ -439,7 +442,7 @@ private module Cached {
439442 n = TScopeResolutionConstantAccess ( result , _) or
440443 n = TScopeResolutionMethodCall ( result , _) or
441444 n = TSelfReal ( result ) or
442- n = TSimpleParameter ( result ) or
445+ n = TSimpleParameterReal ( result ) or
443446 n = TSimpleSymbolLiteral ( result ) or
444447 n = TSingletonClass ( result ) or
445448 n = TSingletonMethod ( result ) or
@@ -522,6 +525,8 @@ private module Cached {
522525 or
523526 result = TSelfSynth ( parent , i , _)
524527 or
528+ result = TSimpleParameterSynth ( parent , i )
529+ or
525530 result = TSplatExprSynth ( parent , i )
526531 or
527532 result = TStmtSequenceSynth ( parent , i )
@@ -730,6 +735,8 @@ class TParameter =
730735 TPatternParameter or TBlockParameter or THashSplatParameter or TKeywordParameter or
731736 TOptionalParameter or TSplatParameter or TForwardParameter ;
732737
738+ class TSimpleParameter = TSimpleParameterReal or TSimpleParameterSynth ;
739+
733740class TPatternParameter = TSimpleParameter or TTuplePatternParameter ;
734741
735742class TNamedParameter =
0 commit comments