File tree Expand file tree Collapse file tree
python/ql/lib/semmle/python Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -520,9 +520,9 @@ module API {
520520 rhs ( base , def ) and pred = trackDefNode ( def )
521521 |
522522 // from `x` to a definition of `x.prop`
523- exists ( DataFlow:: AttrWrite pw | pw = pred .getAnAttributeWrite ( ) |
524- lbl = Label:: memberFromRef ( pw ) and
525- rhs = pw .getValue ( )
523+ exists ( DataFlow:: AttrWrite aw | aw = pred .getAnAttributeWrite ( ) |
524+ lbl = Label:: memberFromRef ( aw ) and
525+ rhs = aw .getValue ( )
526526 )
527527 or
528528 // TODO: I had expected `DataFlow::AttrWrite` to contain the attribute writes from a dict, that's how JS works.
@@ -545,10 +545,10 @@ module API {
545545 or
546546 argumentPassing ( base , lbl , rhs )
547547 or
548- exists ( DataFlow:: LocalSourceNode src , DataFlow:: AttrWrite pw |
549- use ( base , src ) and pw = trackUseNode ( src ) .getAnAttributeWrite ( ) and rhs = pw .getValue ( )
548+ exists ( DataFlow:: LocalSourceNode src , DataFlow:: AttrWrite aw |
549+ use ( base , src ) and aw = trackUseNode ( src ) .getAnAttributeWrite ( ) and rhs = aw .getValue ( )
550550 |
551- lbl = Label:: memberFromRef ( pw )
551+ lbl = Label:: memberFromRef ( aw )
552552 )
553553 }
554554
You can’t perform that action at this time.
0 commit comments