Skip to content

Commit 022cbfa

Browse files
committed
C#: Support 'WithElement'.
1 parent 5511bc8 commit 022cbfa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

csharp/ql/lib/semmle/code/csharp/dataflow/internal/FlowSummaryImplSpecific.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ SummaryComponent interpretComponentSpecific(AccessPathToken c) {
165165
or
166166
c = "WithoutElement" and result = SummaryComponent::withoutContent(any(ElementContent ec))
167167
or
168+
c = "WithElement" and result = SummaryComponent::withContent(any(ElementContent ec))
169+
or
168170
// Qualified names may contain commas,such as in `Tuple<,>`, so get the entire argument list
169171
// rather than an individual argument.
170172
exists(Field f |
@@ -203,6 +205,8 @@ string getComponentSpecificCsv(SummaryComponent sc) {
203205
or
204206
exists(Content c | sc = TWithoutContentSummaryComponent(c) and result = "WithoutElement")
205207
or
208+
exists(Content c | sc = TWithContentSummaryComponent(c) and result = "WithElement")
209+
or
206210
exists(ReturnKind rk |
207211
sc = TReturnSummaryComponent(rk) and
208212
result = "ReturnValue[" + rk + "]" and

0 commit comments

Comments
 (0)