File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed
python/ql/lib/semmle/python/dataflow/new/internal Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -200,24 +200,18 @@ private module SummaryTypeTrackerInput implements SummaryTypeTracker::Input {
200
200
201
201
class SummaryComponentStack = FlowSummary:: SummaryComponentStack ;
202
202
203
- SummaryComponentStack singleton ( SummaryComponent component ) {
204
- result = FlowSummary:: SummaryComponentStack:: singleton ( component )
205
- }
203
+ predicate singleton = FlowSummary:: SummaryComponentStack:: singleton / 1 ;
206
204
207
- SummaryComponentStack push ( SummaryComponent component , SummaryComponentStack stack ) {
208
- result = FlowSummary:: SummaryComponentStack:: push ( component , stack )
209
- }
205
+ predicate push = FlowSummary:: SummaryComponentStack:: push / 2 ;
210
206
211
207
// Relating content to summaries
212
- SummaryComponent content ( TypeTrackerContent contents ) {
213
- result = FlowSummary:: SummaryComponent:: content ( contents )
214
- }
208
+ predicate content = FlowSummary:: SummaryComponent:: content / 1 ;
215
209
216
- SummaryComponent withoutContent ( TypeTrackerContent contents ) { none ( ) }
210
+ predicate withoutContent = FlowSummary :: SummaryComponent :: withoutContent / 1 ;
217
211
218
- SummaryComponent withContent ( TypeTrackerContent contents ) { none ( ) }
212
+ predicate withContent = FlowSummary :: SummaryComponent :: withContent / 1 ;
219
213
220
- SummaryComponent return ( ) { result = FlowSummary:: SummaryComponent:: return ( ) }
214
+ predicate return = FlowSummary:: SummaryComponent:: return / 0 ;
221
215
222
216
// Relating nodes to summaries
223
217
Node argumentOf ( Node call , SummaryComponent arg ) {
You can’t perform that action at this time.
0 commit comments