Skip to content

Commit

Permalink
Python: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yoff committed Oct 4, 2024
1 parent c064a9e commit 201c4aa
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,9 @@ abstract class DataFlowFunction extends DataFlowCallable, TFunction {
int positionalOffset() { result = 0 }

override ParameterNode getParameter(ParameterPosition ppos) {
// Do not handle lower bound positions (such as `[1..]`) here
// they are handled by parameter matching and would create
// inconsistencies here as multiple parameters could match such a position.
exists(int index | ppos.isPositional(index) |
result.getParameter() = func.getArg(index + this.positionalOffset())
)
Expand Down

0 comments on commit 201c4aa

Please sign in to comment.