@@ -132,7 +132,7 @@ module EssaFlow {
132132 // nodeTo = `TIterableSequence([a, b])`
133133 exists ( UnpackingAssignmentDirectTarget target |
134134 nodeFrom .asExpr ( ) = target .getValue ( ) and
135- nodeTo = TIterableSequence ( target )
135+ nodeTo = TIterableSequenceNode ( target )
136136 )
137137 or
138138 // With definition
@@ -435,7 +435,7 @@ module ArgumentPassing {
435435 // argument unpacked from dict
436436 exists ( string name |
437437 call_unpacks ( call , mapping , callable , name , paramN ) and
438- result = TKwUnpacked ( call , callable , name )
438+ result = TKwUnpackedNode ( call , callable , name )
439439 )
440440 )
441441 }
@@ -1186,16 +1186,16 @@ module UnpackingAssignment {
11861186 /** Step 2 */
11871187 predicate unpackingAssignmentFlowStep ( Node nodeFrom , Node nodeTo ) {
11881188 exists ( UnpackingAssignmentSequenceTarget target |
1189- nodeFrom = TIterableSequence ( target ) and
1189+ nodeFrom = TIterableSequenceNode ( target ) and
11901190 nodeTo .asCfgNode ( ) = target
11911191 )
11921192 }
11931193
11941194 /** Step 3 */
11951195 predicate unpackingAssignmentConvertingReadStep ( Node nodeFrom , Content c , Node nodeTo ) {
11961196 exists ( UnpackingAssignmentSequenceTarget target |
1197- nodeFrom = TIterableSequence ( target ) and
1198- nodeTo = TIterableElement ( target ) and
1197+ nodeFrom = TIterableSequenceNode ( target ) and
1198+ nodeTo = TIterableElementNode ( target ) and
11991199 (
12001200 c instanceof ListElementContent
12011201 or
@@ -1215,7 +1215,7 @@ module UnpackingAssignment {
12151215 /** Step 4 */
12161216 predicate unpackingAssignmentConvertingStoreStep ( Node nodeFrom , Content c , Node nodeTo ) {
12171217 exists ( UnpackingAssignmentSequenceTarget target |
1218- nodeFrom = TIterableElement ( target ) and
1218+ nodeFrom = TIterableElementNode ( target ) and
12191219 nodeTo .asCfgNode ( ) = target and
12201220 (
12211221 target instanceof ListNode and
@@ -1249,13 +1249,13 @@ module UnpackingAssignment {
12491249 if element instanceof SequenceNode
12501250 then
12511251 // Step 5b
1252- nodeTo = TIterableSequence ( element ) and
1252+ nodeTo = TIterableSequenceNode ( element ) and
12531253 precise = true
12541254 else
12551255 if element .getNode ( ) instanceof Starred
12561256 then
12571257 // Step 5c
1258- nodeTo = TIterableElement ( element ) and
1258+ nodeTo = TIterableElementNode ( element ) and
12591259 precise = false
12601260 else (
12611261 // Step 5a
@@ -1269,7 +1269,7 @@ module UnpackingAssignment {
12691269 /** Step 6 */
12701270 predicate unpackingAssignmentStarredElementStoreStep ( Node nodeFrom , Content c , Node nodeTo ) {
12711271 exists ( ControlFlowNode starred | starred .getNode ( ) instanceof Starred |
1272- nodeFrom = TIterableElement ( starred ) and
1272+ nodeFrom = TIterableElementNode ( starred ) and
12731273 nodeTo .asVar ( ) .getDefinition ( ) .( MultiAssignmentDefinition ) .getDefiningNode ( ) = starred and
12741274 c instanceof ListElementContent
12751275 )
@@ -1378,7 +1378,7 @@ predicate attributeReadStep(CfgNode nodeFrom, AttributeContent c, CfgNode nodeTo
13781378predicate kwUnpackReadStep ( CfgNode nodeFrom , DictionaryElementContent c , Node nodeTo ) {
13791379 exists ( CallNode call , CallableValue callable , string name |
13801380 nodeFrom .asCfgNode ( ) = call .getNode ( ) .getKwargs ( ) .getAFlowNode ( ) and
1381- nodeTo = TKwUnpacked ( call , callable , name ) and
1381+ nodeTo = TKwUnpackedNode ( call , callable , name ) and
13821382 name = c .getKey ( )
13831383 )
13841384}
0 commit comments