@@ -164,7 +164,8 @@ private module Cached {
164164 THashKeySymbolLiteral ( Ruby:: HashKeySymbol g ) or
165165 THashLiteral ( Ruby:: Hash g ) or
166166 THashPattern ( Ruby:: HashPattern g ) or
167- THashSplatExpr ( Ruby:: HashSplatArgument g ) or
167+ THashSplatExprReal ( Ruby:: HashSplatArgument g ) or
168+ THashSplatExprSynth ( Ast:: AstNode parent , int i ) { mkSynthChild ( HashSplatExprKind ( ) , parent , i ) } or
168169 THashSplatNilParameter ( Ruby:: HashSplatNil g ) { not g .getParent ( ) instanceof Ruby:: HashPattern } or
169170 THashSplatParameter ( Ruby:: HashSplatParameter g ) {
170171 not g .getParent ( ) instanceof Ruby:: HashPattern
@@ -232,7 +233,8 @@ private module Cached {
232233 TNotExprReal ( Ruby:: Unary g ) { g instanceof @ruby_unary_bang or g instanceof @ruby_unary_not } or
233234 TNotExprSynth ( Ast:: AstNode parent , int i ) { mkSynthChild ( NotExprKind ( ) , parent , i ) } or
234235 TOptionalParameter ( Ruby:: OptionalParameter g ) or
235- TPair ( Ruby:: Pair g ) or
236+ TPairReal ( Ruby:: Pair g ) or
237+ TPairSynth ( Ast:: AstNode parent , int i ) { mkSynthChild ( PairExprKind ( ) , parent , i ) } or
236238 TParenthesizedExpr ( Ruby:: ParenthesizedStatements g ) or
237239 TParenthesizedPattern ( Ruby:: ParenthesizedPattern g ) or
238240 TRShiftExprReal ( Ruby:: Binary g ) { g instanceof @ruby_binary_ranglerangle } or
@@ -274,7 +276,10 @@ private module Cached {
274276 TSimpleParameterSynth ( Ast:: AstNode parent , int i ) {
275277 mkSynthChild ( SimpleParameterKind ( ) , parent , i )
276278 } or
277- TSimpleSymbolLiteral ( Ruby:: SimpleSymbol g ) or
279+ TSimpleSymbolLiteralReal ( Ruby:: SimpleSymbol g ) or
280+ TSimpleSymbolLiteralSynth ( Ast:: AstNode parent , int i , string value ) {
281+ mkSynthChild ( SymbolLiteralExprKind ( value ) , parent , i )
282+ } or
278283 TSingletonClass ( Ruby:: SingletonClass g ) or
279284 TSingletonMethod ( Ruby:: SingletonMethod g ) or
280285 TSpaceshipExpr ( Ruby:: Binary g ) { g instanceof @ruby_binary_langleequalrangle } or
@@ -362,19 +367,19 @@ private module Cached {
362367 TEnsure or TEqExpr or TExponentExprReal or TFalseLiteral or TFile or TFindPattern or
363368 TFloatLiteral or TForExpr or TForwardParameter or TForwardArgument or TGEExpr or TGTExpr or
364369 TGlobalVariableAccessReal or THashKeySymbolLiteral or THashLiteral or THashPattern or
365- THashSplatExpr or THashSplatNilParameter or THashSplatParameter or THereDoc or
370+ THashSplatExprReal or THashSplatNilParameter or THashSplatParameter or THereDoc or
366371 TIdentifierMethodCall or TIfReal or TIfModifierExpr or TInClauseReal or
367372 TInstanceVariableAccessReal or TIntegerLiteralReal or TKeywordParameter or TLEExpr or
368373 TLShiftExprReal or TLTExpr or TLambda or TLeftAssignmentList or TLine or
369374 TLocalVariableAccessReal or TLogicalAndExprReal or TLogicalOrExprReal or TMethod or
370375 TMatchPattern or TModuleDeclaration or TModuloExprReal or TMulExprReal or TNEExpr or
371376 TNextStmt or TNilLiteralReal or TNoRegExpMatchExpr or TNotExprReal or TOptionalParameter or
372- TPair or TParenthesizedExpr or TParenthesizedPattern or TRShiftExprReal or
377+ TPairReal or TParenthesizedExpr or TParenthesizedPattern or TRShiftExprReal or
373378 TRangeLiteralReal or TRationalLiteral or TRedoStmt or TRegExpLiteral or TRegExpMatchExpr or
374379 TRegularArrayLiteral or TRegularMethodCall or TRegularStringLiteral or TRegularSuperCall or
375380 TRescueClause or TRescueModifierExpr or TRetryStmt or TReturnStmt or
376381 TScopeResolutionConstantAccess or TSelfReal or TSimpleParameterReal or
377- TSimpleSymbolLiteral or TSingletonClass or TSingletonMethod or TSpaceshipExpr or
382+ TSimpleSymbolLiteralReal or TSingletonClass or TSingletonMethod or TSpaceshipExpr or
378383 TSplatExprReal or TSplatParameter or TStringArrayLiteral or TStringConcatenation or
379384 TStringEscapeSequenceComponent or TStringInterpolationComponent or TStringTextComponent or
380385 TSubExprReal or TSubshellLiteral or TSymbolArrayLiteral or TTernaryIfExpr or TTestPattern or
@@ -392,7 +397,8 @@ private module Cached {
392397 TLShiftExprSynth or TLocalVariableAccessSynth or TLogicalAndExprSynth or
393398 TLogicalOrExprSynth or TMethodCallSynth or TModuloExprSynth or TMulExprSynth or
394399 TNilLiteralSynth or TRShiftExprSynth or TRangeLiteralSynth or TSelfSynth or
395- TSimpleParameterSynth or TSplatExprSynth or TStmtSequenceSynth or TSubExprSynth ;
400+ TSimpleParameterSynth or TSplatExprSynth or THashSplatExprSynth or TStmtSequenceSynth or
401+ TSubExprSynth or TPairSynth or TSimpleSymbolLiteralSynth ;
396402
397403 /**
398404 * Gets the underlying TreeSitter entity for a given AST node. This does not
@@ -468,7 +474,7 @@ private module Cached {
468474 n = THashKeySymbolLiteral ( result ) or
469475 n = THashLiteral ( result ) or
470476 n = THashPattern ( result ) or
471- n = THashSplatExpr ( result ) or
477+ n = THashSplatExprReal ( result ) or
472478 n = THashSplatNilParameter ( result ) or
473479 n = THashSplatParameter ( result ) or
474480 n = THereDoc ( result ) or
@@ -499,7 +505,7 @@ private module Cached {
499505 n = TNoRegExpMatchExpr ( result ) or
500506 n = TNotExprReal ( result ) or
501507 n = TOptionalParameter ( result ) or
502- n = TPair ( result ) or
508+ n = TPairReal ( result ) or
503509 n = TParenthesizedExpr ( result ) or
504510 n = TParenthesizedPattern ( result ) or
505511 n = TRangeLiteralReal ( result ) or
@@ -519,7 +525,7 @@ private module Cached {
519525 n = TScopeResolutionConstantAccess ( result , _) or
520526 n = TSelfReal ( result ) or
521527 n = TSimpleParameterReal ( result ) or
522- n = TSimpleSymbolLiteral ( result ) or
528+ n = TSimpleSymbolLiteralReal ( result ) or
523529 n = TSingletonClass ( result ) or
524530 n = TSingletonMethod ( result ) or
525531 n = TSpaceshipExpr ( result ) or
@@ -633,9 +639,15 @@ private module Cached {
633639 or
634640 result = TSplatExprSynth ( parent , i )
635641 or
642+ result = THashSplatExprSynth ( parent , i )
643+ or
636644 result = TStmtSequenceSynth ( parent , i )
637645 or
638646 result = TSubExprSynth ( parent , i )
647+ or
648+ result = TPairSynth ( parent , i )
649+ or
650+ result = TSimpleSymbolLiteralSynth ( parent , i , _)
639651 }
640652
641653 /**
@@ -726,6 +738,8 @@ class TSelf = TSelfReal or TSelfSynth;
726738
727739class TDestructuredLhsExpr = TDestructuredLeftAssignment or TLeftAssignmentList ;
728740
741+ class TPair = TPairReal or TPairSynth ;
742+
729743class TExpr =
730744 TSelf or TArgumentList or TRescueClause or TRescueModifierExpr or TPair or TStringConcatenation or
731745 TCall or TBlockArgument or TConstantAccess or TControlExpr or TLiteral or TCallable or
@@ -734,6 +748,8 @@ class TExpr =
734748
735749class TSplatExpr = TSplatExprReal or TSplatExprSynth ;
736750
751+ class THashSplatExpr = THashSplatExprReal or THashSplatExprSynth ;
752+
737753class TElse = TElseReal or TElseSynth ;
738754
739755class TStmtSequence =
@@ -768,13 +784,16 @@ class TStringInterpolationComponent =
768784 TStringInterpolationComponentNonRegexp or TStringInterpolationComponentRegexp ;
769785
770786class TStringComponent =
771- TStringTextComponent or TStringEscapeSequenceComponent or TStringInterpolationComponent ;
787+ TStringTextComponent or TStringEscapeSequenceComponent or TStringInterpolationComponent or
788+ TSimpleSymbolLiteralSynth ;
772789
773790class TStringlikeLiteral =
774791 TStringLiteral or TRegExpLiteral or TSymbolLiteral or TSubshellLiteral or THereDoc ;
775792
776793class TStringLiteral = TRegularStringLiteral or TBareStringLiteral ;
777794
795+ class TSimpleSymbolLiteral = TSimpleSymbolLiteralReal or TSimpleSymbolLiteralSynth ;
796+
778797class TSymbolLiteral = TSimpleSymbolLiteral or TComplexSymbolLiteral or THashKeySymbolLiteral ;
779798
780799class TComplexSymbolLiteral = TDelimitedSymbolLiteral or TBareSymbolLiteral ;
0 commit comments