Skip to content

Commit 47d5c6c

Browse files
asgerfCopilot
andcommitted
Unified: Add TODO about setter value position with omitted defaults
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 5ae017e commit 47d5c6c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎unified/ql/lib/codeql/unified/internal/dataflow/DataFlowInstantiation.qll‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ module DataFlowInput implements InputSig<Location> {
113113
or
114114
n.(BuilderNode).isSetterValueArgument(call) and
115115
// The new value is passed after the positional arguments, if any
116+
// TODO: This position is wrong if the setter has parameters with default values that are
117+
// omitted at the call site; optional parameters are not yet supported.
116118
pos.asPositional() =
117119
count(Argument arg |
118120
arg = call.asSetterCall().(CallExpr).getAnArgument() and arg.isPositional()

0 commit comments

Comments
 (0)