Python: add location to node

This commit is contained in:
Rasmus Lerchedahl Petersen
2024-09-30 11:56:36 +02:00
parent 310819d392
commit 3ef05a628f

View File

@@ -1768,6 +1768,12 @@ class SynthCompCapturedVariablesArgumentPostUpdateNode extends PostUpdateNodeImp
this = TSynthCompCapturedVariablesArgumentPostUpdateNode(comp)
}
override string toString() { result = "[post] Capturing closure argument (comp)" }
override Scope getScope() { result = comp.getScope() }
override Location getLocation() { result = comp.getLocation() }
override Node getPreUpdateNode() { result = TSynthCompCapturedVariablesArgumentNode(comp) }
}