Python: Fix forgotten type tracker

This was the last remaining type tracker that did not use
`LocalSourceNode`.
This commit is contained in:
Taus
2021-04-20 14:32:56 +00:00
committed by GitHub
parent 38548c9acd
commit 7581cbade6

View File

@@ -1303,7 +1303,7 @@ private module PrivateDjango {
}
/** Gets a reference to the `django.http.response.HttpResponse.write` function. */
private DataFlow::Node write(
private DataFlow::LocalSourceNode write(
django::http::response::HttpResponse::InstanceSource instance, DataFlow::TypeTracker t
) {
t.startInAttr("write") and
@@ -1315,7 +1315,7 @@ private module PrivateDjango {
/** Gets a reference to the `django.http.response.HttpResponse.write` function. */
DataFlow::Node write(django::http::response::HttpResponse::InstanceSource instance) {
result = write(instance, DataFlow::TypeTracker::end())
write(instance, DataFlow::TypeTracker::end()).flowsTo(result)
}
/**