python: type tracking uses source nodes

This commit is contained in:
Rasmus Lerchedahl Petersen
2022-04-08 07:38:30 +02:00
committed by GitHub
parent 81ca479ca9
commit d85844bb89

View File

@@ -35,10 +35,10 @@ string getPossibleContentName() {
*/
pragma[nomagic]
private DataFlowPrivate::DataFlowCallable getCallableForArgument(
DataFlowPublic::ArgumentNode nodeFrom, int i
DataFlowPublic::ArgumentSourceNode nodeFrom, int i
) {
exists(DataFlowPrivate::DataFlowSourceCall call |
nodeFrom.argumentOf(call, i) and
nodeFrom.sourceArgumentOf(call, i) and
result = call.getCallable()
)
}