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 {
200200
201201 class SummaryComponentStack = FlowSummary:: SummaryComponentStack ;
202202
203- SummaryComponentStack singleton ( SummaryComponent component ) {
204- result = FlowSummary:: SummaryComponentStack:: singleton ( component )
205- }
203+ predicate singleton = FlowSummary:: SummaryComponentStack:: singleton / 1 ;
206204
207- SummaryComponentStack push ( SummaryComponent component , SummaryComponentStack stack ) {
208- result = FlowSummary:: SummaryComponentStack:: push ( component , stack )
209- }
205+ predicate push = FlowSummary:: SummaryComponentStack:: push / 2 ;
210206
211207 // Relating content to summaries
212- SummaryComponent content ( TypeTrackerContent contents ) {
213- result = FlowSummary:: SummaryComponent:: content ( contents )
214- }
208+ predicate content = FlowSummary:: SummaryComponent:: content / 1 ;
215209
216- SummaryComponent withoutContent ( TypeTrackerContent contents ) { none ( ) }
210+ predicate withoutContent = FlowSummary :: SummaryComponent :: withoutContent / 1 ;
217211
218- SummaryComponent withContent ( TypeTrackerContent contents ) { none ( ) }
212+ predicate withContent = FlowSummary :: SummaryComponent :: withContent / 1 ;
219213
220- SummaryComponent return ( ) { result = FlowSummary:: SummaryComponent:: return ( ) }
214+ predicate return = FlowSummary:: SummaryComponent:: return / 0 ;
221215
222216 // Relating nodes to summaries
223217 Node argumentOf ( Node call , SummaryComponent arg ) {
You can’t perform that action at this time.
0 commit comments