File tree Expand file tree Collapse file tree 1 file changed +6
-16
lines changed
ruby/ql/lib/codeql/ruby/typetracking Expand file tree Collapse file tree 1 file changed +6
-16
lines changed Original file line number Diff line number Diff line change @@ -394,28 +394,18 @@ private module SummaryTypeTrackerInput implements SummaryTypeTracker::Input {
394394
395395 class SummaryComponentStack = FlowSummary:: SummaryComponentStack ;
396396
397- SummaryComponentStack singleton ( SummaryComponent component ) {
398- result = FlowSummary:: SummaryComponentStack:: singleton ( component )
399- }
397+ predicate singleton = FlowSummary:: SummaryComponentStack:: singleton / 1 ;
400398
401- SummaryComponentStack push ( SummaryComponent component , SummaryComponentStack stack ) {
402- result = FlowSummary:: SummaryComponentStack:: push ( component , stack )
403- }
399+ predicate push = FlowSummary:: SummaryComponentStack:: push / 2 ;
404400
405401 // Relating content to summaries
406- SummaryComponent content ( TypeTrackerContent contents ) {
407- result = FlowSummary:: SummaryComponent:: content ( contents )
408- }
402+ predicate content = FlowSummary:: SummaryComponent:: content / 1 ;
409403
410- SummaryComponent withoutContent ( TypeTrackerContent contents ) {
411- result = FlowSummary:: SummaryComponent:: withoutContent ( contents )
412- }
404+ predicate withoutContent = FlowSummary:: SummaryComponent:: withoutContent / 1 ;
413405
414- SummaryComponent withContent ( TypeTrackerContent contents ) {
415- result = FlowSummary:: SummaryComponent:: withContent ( contents )
416- }
406+ predicate withContent = FlowSummary:: SummaryComponent:: withContent / 1 ;
417407
418- SummaryComponent return ( ) { result = FlowSummary:: SummaryComponent:: return ( ) }
408+ predicate return = FlowSummary:: SummaryComponent:: return / 0 ;
419409
420410 // Callables
421411 class SummarizedCallable = FlowSummary:: SummarizedCallable ;
You can’t perform that action at this time.
0 commit comments