@@ -255,8 +255,11 @@ private module SetterDesugar {
255
255
MethodCall getMethodCall ( ) { result = mc }
256
256
257
257
pragma [ nomagic]
258
- MethodCallKind getCallKind ( boolean setter , int arity ) {
259
- result = MethodCallKind ( mc .getMethodName ( ) , setter , arity )
258
+ private string getMethodName ( ) { result = mc .getMethodName ( ) }
259
+
260
+ pragma [ nomagic]
261
+ MethodCallKind getCallKind ( int arity ) {
262
+ result = MethodCallKind ( this .getMethodName ( ) , true , arity )
260
263
}
261
264
262
265
pragma [ nomagic]
@@ -282,7 +285,7 @@ private module SetterDesugar {
282
285
exists ( AstNode seq | seq = TStmtSequenceSynth ( sae , - 1 ) |
283
286
parent = seq and
284
287
i = 0 and
285
- child = SynthChild ( sae .getCallKind ( true , sae .getNumberOfArguments ( ) + 1 ) )
288
+ child = SynthChild ( sae .getCallKind ( sae .getNumberOfArguments ( ) + 1 ) )
286
289
or
287
290
exists ( AstNode call | call = TMethodCallSynth ( seq , 0 , _, _, _) |
288
291
parent = call and
@@ -492,9 +495,12 @@ private module AssignOperationDesugar {
492
495
493
496
MethodCall getMethodCall ( ) { result = mc }
494
497
498
+ pragma [ nomagic]
499
+ private string getMethodName ( ) { result = mc .getMethodName ( ) }
500
+
495
501
pragma [ nomagic]
496
502
MethodCallKind getCallKind ( boolean setter , int arity ) {
497
- result = MethodCallKind ( mc .getMethodName ( ) , setter , arity )
503
+ result = MethodCallKind ( this .getMethodName ( ) , setter , arity )
498
504
}
499
505
500
506
pragma [ nomagic]
0 commit comments