File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
swift/ql/lib/codeql/swift/dataflow/internal Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,11 @@ private string getContentSpecific(ContentSet cs) {
110
110
result = "Field[" + c .getField ( ) .getName ( ) + "]"
111
111
)
112
112
or
113
+ exists ( Content:: EnumContent c |
114
+ cs .isSingleton ( c ) and
115
+ result = "EnumElement[" + c .getSignature ( ) + "]"
116
+ )
117
+ or
113
118
exists ( Content:: ArrayContent c |
114
119
cs .isSingleton ( c ) and
115
120
result = "ArrayElement"
@@ -130,6 +135,15 @@ string getMadRepresentationSpecific(SummaryComponent sc) {
130
135
not rk = getReturnValueKind ( ) and
131
136
result = "ReturnValue" + "[" + rk + "]"
132
137
)
138
+ or
139
+ exists ( ContentSet c |
140
+ sc = TWithoutContentSummaryComponent ( c ) and
141
+ result = "WithoutContent" + c .toString ( )
142
+ ) or
143
+ exists ( ContentSet c |
144
+ sc = TWithContentSummaryComponent ( c ) and
145
+ result = "WithContent" + c .toString ( )
146
+ )
133
147
}
134
148
135
149
/** Gets the textual representation of a parameter position in the format used for flow summaries. */
You can’t perform that action at this time.
0 commit comments