@@ -138,7 +138,9 @@ private module Cached {
138138 TFalseLiteral ( Ruby:: False g ) or
139139 TFile ( Ruby:: File g ) or
140140 TFindPattern ( Ruby:: FindPattern g ) or
141- TFloatLiteral ( Ruby:: Float g ) { not any ( Ruby:: Rational r ) .getChild ( ) = g } or
141+ TFloatLiteral ( Ruby:: Float g ) {
142+ not any ( Ruby:: Complex r ) .getChild ( ) = g and not any ( Ruby:: Rational r ) .getChild ( ) = g
143+ } or
142144 TForExpr ( Ruby:: For g ) or
143145 TForwardParameter ( Ruby:: ForwardParameter g ) or
144146 TForwardArgument ( Ruby:: ForwardArgument g ) or
@@ -169,7 +171,9 @@ private module Cached {
169171 TInstanceVariableAccessSynth ( AST:: AstNode parent , int i , AST:: InstanceVariable v ) {
170172 mkSynthChild ( InstanceVariableAccessKind ( v ) , parent , i )
171173 } or
172- TIntegerLiteralReal ( Ruby:: Integer g ) { not any ( Ruby:: Rational r ) .getChild ( ) = g } or
174+ TIntegerLiteralReal ( Ruby:: Integer g ) {
175+ not any ( Ruby:: Complex r ) .getChild ( ) = g and not any ( Ruby:: Rational r ) .getChild ( ) = g
176+ } or
173177 TIntegerLiteralSynth ( AST:: AstNode parent , int i , int value ) {
174178 mkSynthChild ( IntegerLiteralKind ( value ) , parent , i )
175179 } or
@@ -223,7 +227,7 @@ private module Cached {
223227 TRangeLiteralSynth ( AST:: AstNode parent , int i , boolean inclusive ) {
224228 mkSynthChild ( RangeLiteralKind ( inclusive ) , parent , i )
225229 } or
226- TRationalLiteral ( Ruby:: Rational g ) or
230+ TRationalLiteral ( Ruby:: Rational g ) { not any ( Ruby :: Complex r ) . getChild ( ) = g } or
227231 TRedoStmt ( Ruby:: Redo g ) or
228232 TRegExpLiteral ( Ruby:: Regex g ) or
229233 TRegExpMatchExpr ( Ruby:: Binary g ) { g instanceof @ruby_binary_equaltilde } or
@@ -248,9 +252,6 @@ private module Cached {
248252 casePattern ( g )
249253 )
250254 } or
251- TScopeResolutionMethodCall ( Ruby:: ScopeResolution g , Ruby:: Identifier i ) {
252- isScopeResolutionMethodCall ( g , i )
253- } or
254255 TSelfReal ( Ruby:: Self g ) or
255256 TSelfSynth ( AST:: AstNode parent , int i , AST:: SelfVariable v ) {
256257 mkSynthChild ( SelfKind ( v ) , parent , i )
@@ -356,15 +357,15 @@ private module Cached {
356357 TRShiftExprReal or TRangeLiteralReal or TRationalLiteral or TRedoStmt or TRegExpLiteral or
357358 TRegExpMatchExpr or TRegularArrayLiteral or TRegularMethodCall or TRegularStringLiteral or
358359 TRegularSuperCall or TRescueClause or TRescueModifierExpr or TRetryStmt or TReturnStmt or
359- TScopeResolutionConstantAccess or TScopeResolutionMethodCall or TSelfReal or
360- TSimpleParameterReal or TSimpleSymbolLiteral or TSingletonClass or TSingletonMethod or
361- TSpaceshipExpr or TSplatExprReal or TSplatParameter or TStringArrayLiteral or
362- TStringConcatenation or TStringEscapeSequenceComponent or TStringInterpolationComponent or
363- TStringTextComponent or TSubExprReal or TSubshellLiteral or TSymbolArrayLiteral or
364- TTernaryIfExpr or TThen or TTokenConstantAccess or TTokenMethodName or TTokenSuperCall or
365- TToplevel or TTrueLiteral or TUnaryMinusExpr or TUnaryPlusExpr or TUndefStmt or
366- TUnlessExpr or TUnlessModifierExpr or TUntilExpr or TUntilModifierExpr or
367- TReferencePattern or TWhenClause or TWhileExpr or TWhileModifierExpr or TYieldCall ;
360+ TScopeResolutionConstantAccess or TSelfReal or TSimpleParameterReal or
361+ TSimpleSymbolLiteral or TSingletonClass or TSingletonMethod or TSpaceshipExpr or
362+ TSplatExprReal or TSplatParameter or TStringArrayLiteral or TStringConcatenation or
363+ TStringEscapeSequenceComponent or TStringInterpolationComponent or TStringTextComponent or
364+ TSubExprReal or TSubshellLiteral or TSymbolArrayLiteral or TTernaryIfExpr or TThen or
365+ TTokenConstantAccess or TTokenMethodName or TTokenSuperCall or TToplevel or TTrueLiteral or
366+ TUnaryMinusExpr or TUnaryPlusExpr or TUndefStmt or TUnlessExpr or TUnlessModifierExpr or
367+ TUntilExpr or TUntilModifierExpr or TReferencePattern or TWhenClause or TWhileExpr or
368+ TWhileModifierExpr or TYieldCall ;
368369
369370 class TAstNodeSynth =
370371 TAddExprSynth or TAssignExprSynth or TBitwiseAndExprSynth or TBitwiseOrExprSynth or
@@ -498,7 +499,6 @@ private module Cached {
498499 n = TReturnStmt ( result ) or
499500 n = TRShiftExprReal ( result ) or
500501 n = TScopeResolutionConstantAccess ( result , _) or
501- n = TScopeResolutionMethodCall ( result , _) or
502502 n = TSelfReal ( result ) or
503503 n = TSimpleParameterReal ( result ) or
504504 n = TSimpleSymbolLiteral ( result ) or
@@ -659,8 +659,8 @@ class TCall = TMethodCall or TYieldCall;
659659class TCase = TCaseExpr or TCaseMatch ;
660660
661661class TMethodCall =
662- TMethodCallSynth or TIdentifierMethodCall or TScopeResolutionMethodCall or TRegularMethodCall or
663- TElementReference or TSuperCall or TUnaryOperation or TBinaryOperation ;
662+ TMethodCallSynth or TIdentifierMethodCall or TRegularMethodCall or TElementReference or
663+ TSuperCall or TUnaryOperation or TBinaryOperation ;
664664
665665class TSuperCall = TTokenSuperCall or TRegularSuperCall ;
666666
0 commit comments