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 {
394
394
395
395
class SummaryComponentStack = FlowSummary:: SummaryComponentStack ;
396
396
397
- SummaryComponentStack singleton ( SummaryComponent component ) {
398
- result = FlowSummary:: SummaryComponentStack:: singleton ( component )
399
- }
397
+ predicate singleton = FlowSummary:: SummaryComponentStack:: singleton / 1 ;
400
398
401
- SummaryComponentStack push ( SummaryComponent component , SummaryComponentStack stack ) {
402
- result = FlowSummary:: SummaryComponentStack:: push ( component , stack )
403
- }
399
+ predicate push = FlowSummary:: SummaryComponentStack:: push / 2 ;
404
400
405
401
// Relating content to summaries
406
- SummaryComponent content ( TypeTrackerContent contents ) {
407
- result = FlowSummary:: SummaryComponent:: content ( contents )
408
- }
402
+ predicate content = FlowSummary:: SummaryComponent:: content / 1 ;
409
403
410
- SummaryComponent withoutContent ( TypeTrackerContent contents ) {
411
- result = FlowSummary:: SummaryComponent:: withoutContent ( contents )
412
- }
404
+ predicate withoutContent = FlowSummary:: SummaryComponent:: withoutContent / 1 ;
413
405
414
- SummaryComponent withContent ( TypeTrackerContent contents ) {
415
- result = FlowSummary:: SummaryComponent:: withContent ( contents )
416
- }
406
+ predicate withContent = FlowSummary:: SummaryComponent:: withContent / 1 ;
417
407
418
- SummaryComponent return ( ) { result = FlowSummary:: SummaryComponent:: return ( ) }
408
+ predicate return = FlowSummary:: SummaryComponent:: return / 0 ;
419
409
420
410
// Callables
421
411
class SummarizedCallable = FlowSummary:: SummarizedCallable ;
You can’t perform that action at this time.
0 commit comments