Skip to content

Commit 3a7d51d

Browse files
committed
C#: Don't throw away ReturnKind information, when printing flow summaries. Note that any non NormalReturnKind printed summary will not be in the flow summary CSV language
1 parent e607c51 commit 3a7d51d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,12 @@ private string getContentSpecificCsv(Content c) {
150150
/** Gets the textual representation of a summary component in the format used for flow summaries */
151151
string getComponentSpecificCsv(SummaryComponent sc) {
152152
exists(Content c | sc = TContentSummaryComponent(c) and result = getContentSpecificCsv(c))
153+
or
154+
exists(ReturnKind jrk |
155+
sc = TReturnSummaryComponent(jrk) and
156+
result = "ReturnValue[" + jrk + "]" and
157+
not jrk instanceof NormalReturnKind
158+
)
153159
}
154160

155161
class SourceOrSinkElement = Element;

0 commit comments

Comments
 (0)