mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
python: capture flow through comprehensions
- add comprehension functions as `DataFlowCallable`s - add comprehension call as `DataFlowCall` - create capture argument node for comprehension calls
This commit is contained in:
@@ -137,7 +137,7 @@ def test_list_comprehension_with_tuple_result():
|
||||
s = SOURCE
|
||||
ns = NONSOURCE
|
||||
l3 = [(s, ns) for _ in [1]]
|
||||
SINK(l3[0][0]) # $ MISSING: flow="SOURCE, l:-3 -> l3[0][0]"
|
||||
SINK(l3[0][0]) # $ flow="SOURCE, l:-3 -> l3[0][0]"
|
||||
SINK_F(l3[0][1])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user