Python: Refactor references to NormalCall.

This commit is contained in:
Anders Schack-Mulligen
2024-10-16 16:04:31 +02:00
parent bee073dee5
commit 5950c336e2
3 changed files with 11 additions and 10 deletions

View File

@@ -21,8 +21,11 @@ module DataFlowCallTest implements TestSig {
value = prettyExpr(call.getNode().getNode()) and
tag = "call"
or
value = call.(DataFlowDispatch::NormalCall).getCallType().toString() and
tag = "callType"
exists(DataFlowDispatch::CallType callType |
DataFlowDispatch::resolveCall(call.getNode(), _, callType) and
value = callType.toString() and
tag = "callType"
)
or
exists(DataFlowDispatch::ArgumentPosition pos, DataFlow::Node arg |
arg = call.getArgument(pos)