Python: just use ListElementContent for iterables

This commit is contained in:
Rasmus Lerchedahl Petersen
2024-10-01 16:24:15 +02:00
parent f39dc41903
commit 38b1eb7c71
3 changed files with 8 additions and 27 deletions

View File

@@ -4224,6 +4224,10 @@ module StdlibPrivate {
preservesValue = true
)
or
input = "Argument[0].ListElement.TupleElement[1]" and
output = "ReturnValue.DictionaryElementAny" and
preservesValue = true
or
exists(DataFlow::DictionaryElementContent dc, string key | key = dc.getKey() |
input = "Argument[" + key + ":]" and
output = "ReturnValue.DictionaryElement[" + key + "]" and