Skip to content

Commit 74885e3

Browse files
committed
unified: Handle TupleElement
1 parent 4e7c77f commit 74885e3

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@ module FlowSummaryInput implements InputSig<Location, DataFlowInput> {
6363
token = "OptionalSome" and result = ContentSet::namedMember("some.0")
6464
or
6565
token = "CollectionElement" and result = ContentSet::arrayElement()
66+
or
67+
token.getName() = "TupleElement" and
68+
(
69+
result = ContentSet::namedMember(token.getAnArgument())
70+
or
71+
not exists(token.getArgumentList()) and
72+
result = ContentSet::arrayElement()
73+
)
6674
}
6775

6876
bindingset[token]

0 commit comments

Comments
 (0)