@@ -235,7 +235,7 @@ private class RefArg extends AssignableAccess {
235235module AssignableInternal {
236236 private predicate tupleAssignmentDefinition ( AssignExpr ae , Expr leaf ) {
237237 exists ( TupleExpr te |
238- ae .getLValue ( ) = te and
238+ ae .getLeftOperand ( ) = te and
239239 te .getAnArgument + ( ) = leaf and
240240 // `leaf` is either an assignable access or a local variable declaration
241241 not leaf instanceof TupleExpr
@@ -249,8 +249,8 @@ module AssignableInternal {
249249 */
250250 private predicate tupleAssignmentPair ( AssignExpr ae , Expr left , Expr right ) {
251251 tupleAssignmentDefinition ( ae , _) and
252- left = ae .getLValue ( ) and
253- right = ae .getRValue ( )
252+ left = ae .getLeftOperand ( ) and
253+ right = ae .getRightOperand ( )
254254 or
255255 exists ( TupleExpr l , TupleExpr r , int i | tupleAssignmentPair ( ae , l , r ) |
256256 left = l .getArgument ( i ) and
@@ -291,7 +291,7 @@ module AssignableInternal {
291291 cached
292292 newtype TAssignableDefinition =
293293 TAssignmentDefinition ( Assignment a ) {
294- not a .getLValue ( ) instanceof TupleExpr and
294+ not a .getLeftOperand ( ) instanceof TupleExpr and
295295 not a instanceof AssignCallOperation and
296296 not a instanceof AssignCoalesceExpr
297297 } or
@@ -358,7 +358,7 @@ module AssignableInternal {
358358 // Not defined by dispatch in order to avoid too conservative negative recursion error
359359 cached
360360 AssignableAccess getTargetAccess ( AssignableDefinition def ) {
361- def = TAssignmentDefinition ( any ( Assignment a | a .getLValue ( ) = result ) )
361+ def = TAssignmentDefinition ( any ( Assignment a | a .getLeftOperand ( ) = result ) )
362362 or
363363 def = TTupleAssignmentDefinition ( _, result )
364364 or
@@ -381,8 +381,8 @@ module AssignableInternal {
381381 tupleAssignmentPair ( ae , ac , result )
382382 )
383383 or
384- exists ( Assignment ass | ac = ass .getLValue ( ) |
385- result = ass .getRValue ( ) and
384+ exists ( Assignment ass | ac = ass .getLeftOperand ( ) |
385+ result = ass .getRightOperand ( ) and
386386 not ass instanceof AssignOperation
387387 )
388388 or
@@ -527,7 +527,7 @@ module AssignableDefinitions {
527527 Assignment getAssignment ( ) { result = a }
528528
529529 override Expr getSource ( ) {
530- result = a .getRValue ( ) and
530+ result = a .getRightOperand ( ) and
531531 not a instanceof AddOrRemoveEventExpr
532532 }
533533
0 commit comments