Skip to content

Commit 385e213

Browse files
committed
Python: Fix comments
1 parent ce18bff commit 385e213

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

python/ql/src/experimental/dataflow/internal/DataFlowPublic.qll

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,22 @@ newtype TNode =
2929
TSyntheticPostUpdateNode(NeedsSyntheticPostUpdateNode pre) or
3030
/** A node representing a global (module-level) variable in a specific module. */
3131
TModuleVariableNode(Module m, GlobalVariable v) { v.getScope() = m and v.escapes() } or
32-
/** A node representing the overflow positional arguments to a call. */
32+
/**
33+
* A node representing the overflow positional arguments to a call.
34+
* That is, `call` contains more positional arguments than there are
35+
* positional parameters in `callable`. The extra ones are passed as
36+
* a tuple to a starred parameter; this synthetic node represents that tuple.
37+
*/
3338
TPosOverflowNode(CallNode call, CallableValue callable) {
3439
exists(getPositionalOverflowArg(call, callable, _))
3540
} or
36-
/** A node representing the overflow keyword arguments to a call. */
41+
/**
42+
* A node representing the overflow keyword arguments to a call.
43+
* That is, `call` contains keyword arguments for keys that do not have
44+
* keyword parameters in `callable`. These extra ones are passed as
45+
* a dictionary to a doubly starred parameter; this synthetic node
46+
* represents that dictionary.
47+
*/
3748
TKwOverflowNode(CallNode call, CallableValue callable) {
3849
exists(getKeywordOverflowArg(call, callable, _))
3950
or
@@ -43,7 +54,7 @@ newtype TNode =
4354
/**
4455
* A node representing an unpacked element of a dictionary argument.
4556
* That is, `call` contains argument `**{"foo": bar}` which is passed
46-
* to parameter `foo` of `callable.
57+
* to parameter `foo` of `callable`.
4758
*/
4859
TKwUnpacked(CallNode call, CallableValue callable, string name) {
4960
call_unpacks(call, _, callable, name, _)

0 commit comments

Comments
 (0)