Skip to content

Commit 26ab8b2

Browse files
committed
unified: Handle TupleElement
1 parent ccdc8fa commit 26ab8b2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ 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+
result = ContentSet::namedMember(AccessPathSyntax::parseInt(token.getAnArgument()).toString())
6669
}
6770

6871
bindingset[token]

0 commit comments

Comments
 (0)