Skip to content

Commit 3ef05a6

Browse files
committed
Python: add location to node
1 parent 310819d commit 3ef05a6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

python/ql/lib/semmle/python/dataflow/new/internal/DataFlowDispatch.qll

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1768,6 +1768,12 @@ class SynthCompCapturedVariablesArgumentPostUpdateNode extends PostUpdateNodeImp
17681768
this = TSynthCompCapturedVariablesArgumentPostUpdateNode(comp)
17691769
}
17701770

1771+
override string toString() { result = "[post] Capturing closure argument (comp)" }
1772+
1773+
override Scope getScope() { result = comp.getScope() }
1774+
1775+
override Location getLocation() { result = comp.getLocation() }
1776+
17711777
override Node getPreUpdateNode() { result = TSynthCompCapturedVariablesArgumentNode(comp) }
17721778
}
17731779

0 commit comments

Comments
 (0)