Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b092df4

Browse files
committed
Python: Location and toString for KwUnpacked
1 parent 29a162b commit b092df4

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

python/ql/src/experimental/dataflow/internal/DataFlowPublic.qll

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,17 @@ class KwOverflowNode extends Node, TKwOverflowNode {
275275
override Location getLocation() { result = call.getLocation() }
276276
}
277277

278+
class KwUnpacked extends Node, TKwUnpacked {
279+
CallNode call;
280+
string name;
281+
282+
KwUnpacked() { this = TKwUnpacked(call, _, name) }
283+
284+
override string toString() { result = "KwUnpacked " + name }
285+
286+
override Location getLocation() { result = call.getLocation() }
287+
}
288+
278289
/**
279290
* A node that controls whether other nodes are evaluated.
280291
*/

0 commit comments

Comments
 (0)