Python: Location and toString for KwUnpacked

This commit is contained in:
Rasmus Lerchedahl Petersen
2020-10-01 10:15:19 +02:00
parent 29a162bc9c
commit b092df48a5

View File

@@ -275,6 +275,17 @@ class KwOverflowNode extends Node, TKwOverflowNode {
override Location getLocation() { result = call.getLocation() }
}
class KwUnpacked extends Node, TKwUnpacked {
CallNode call;
string name;
KwUnpacked() { this = TKwUnpacked(call, _, name) }
override string toString() { result = "KwUnpacked " + name }
override Location getLocation() { result = call.getLocation() }
}
/**
* A node that controls whether other nodes are evaluated.
*/