@@ -174,32 +174,34 @@ module EntityFramework {
174
174
}
175
175
}
176
176
177
- private class RawSqlStringSummarizedCallable extends EFSummarizedCallable {
178
- private SummaryComponentStack input_ ;
179
- private SummaryComponentStack output_ ;
180
- private boolean preservesValue_ ;
181
-
182
- RawSqlStringSummarizedCallable ( ) {
177
+ private class RawSqlStringConstructorSummarizedCallable extends EFSummarizedCallable {
178
+ RawSqlStringConstructorSummarizedCallable ( ) {
183
179
exists ( RawSqlStringStruct s |
184
180
this = s .getAConstructor ( ) and
185
- input_ = SummaryComponentStack:: argument ( 0 ) and
186
- this .getNumberOfParameters ( ) > 0 and
187
- output_ = SummaryComponentStack:: return ( ) and
188
- preservesValue_ = false
189
- or
190
- this = s .getAConversionTo ( ) and
191
- input_ = SummaryComponentStack:: argument ( 0 ) and
192
- output_ = SummaryComponentStack:: return ( ) and
193
- preservesValue_ = false
181
+ this .getNumberOfParameters ( ) > 0
194
182
)
195
183
}
196
184
197
185
override predicate propagatesFlow (
198
186
SummaryComponentStack input , SummaryComponentStack output , boolean preservesValue
199
187
) {
200
- input = input_ and
201
- output = output_ and
202
- preservesValue = preservesValue_
188
+ input = SummaryComponentStack:: argument ( 0 ) and
189
+ output = SummaryComponentStack:: return ( ) and
190
+ preservesValue = false
191
+ }
192
+ }
193
+
194
+ private class RawSqlStringConversionSummarizedCallable extends EFSummarizedCallable {
195
+ RawSqlStringConversionSummarizedCallable ( ) {
196
+ exists ( RawSqlStringStruct s | this = s .getAConversionTo ( ) )
197
+ }
198
+
199
+ override predicate propagatesFlow (
200
+ SummaryComponentStack input , SummaryComponentStack output , boolean preservesValue
201
+ ) {
202
+ input = SummaryComponentStack:: argument ( 0 ) and
203
+ output = SummaryComponentStack:: return ( ) and
204
+ preservesValue = false
203
205
}
204
206
}
205
207
0 commit comments