Files
codeql/python/ql/lib/semmle/python
Rasmus Wriedt Larsen cdf4dd16f0 Python: Fix module level flow for iterable unpacking
(and for * patterns in match)

Since `PhaseDependentFlow` uses the following predicate, that relies on
.getScope() to be present for there to be any importTimeFlow (flow at
toplevel scope), it's important that data-flow nodes implement `.getScope`.

```
private predicate isTopLevel(Node node) { node.getScope() instanceof Module }
```

By implementing getScope, we can now rely on default implementation of
`getEnclosingCallable` in DataFlow::Node:

```
  /** Gets the enclosing callable of this node. */
  DataFlowCallable getEnclosingCallable() { result = getCallableScope(this.getScope()) }
```
2024-02-28 16:39:08 +01:00
..
2024-01-22 09:11:35 +01:00
2022-06-23 09:05:32 +00:00
2024-01-22 09:11:35 +01:00
2024-01-22 09:11:35 +01:00
2023-06-09 15:12:23 +02:00
2024-01-22 09:11:35 +01:00
2022-08-19 13:57:41 +02:00
2024-01-22 09:11:35 +01:00
2023-11-20 21:35:32 +01:00
2022-03-30 22:54:01 +02:00
2022-06-23 09:05:32 +00:00
2022-08-19 13:57:41 +02:00
2022-12-16 13:40:10 +01:00
2023-04-26 12:44:53 +02:00