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

@@ -31,10 +31,8 @@ predicate typeTrackerCallEdge(CallNode call, Function callable) {
predicate typeTrackerClassCall(CallNode call, Function callable) {
exists(call.getLocation().getFile().getRelativePath()) and
exists(callable.getLocation().getFile().getRelativePath()) and
exists(TT::NormalCall cc |
cc = TT::TNormalCall(call, _, any(TT::TCallType t | t instanceof TT::CallTypeClass)) and
TT::TFunction(callable) = TT::viableCallable(cc)
)
TT::resolveCall(call, callable, any(TT::TCallType t | t instanceof TT::CallTypeClass)) and
TT::TFunction(callable) instanceof TT::DataFlowFunction
}
module CallGraphTest implements TestSig {