Skip to content

Commit d012eaa

Browse files
committed
Python: Clarify getArg is about positional arguments
1 parent 56ed68b commit d012eaa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/ql/lib/semmle/python/Flow.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ class CallNode extends ControlFlowNode {
363363
)
364364
}
365365

366-
/** Gets the flow node corresponding to the nth argument of the call corresponding to this flow node */
366+
/** Gets the flow node corresponding to the n'th positional argument of the call corresponding to this flow node */
367367
ControlFlowNode getArg(int n) {
368368
exists(Call c |
369369
this.getNode() = c and

python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPublic.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ class CallCfgNode extends CfgNode, LocalSourceNode {
211211
*/
212212
Node getFunction() { result.asCfgNode() = node.getFunction() }
213213

214-
/** Gets the data-flow node corresponding to the i'th argument of the call corresponding to this data-flow node */
214+
/** Gets the data-flow node corresponding to the i'th positional argument of the call corresponding to this data-flow node */
215215
Node getArg(int i) { result.asCfgNode() = node.getArg(i) }
216216

217217
/** Gets the data-flow node corresponding to the named argument of the call corresponding to this data-flow node */

0 commit comments

Comments
 (0)