@@ -478,11 +478,7 @@ class DataFlowCall extends TDataFlowCall {
478
478
this = MkSummaryCall ( enclosingCallable , receiver )
479
479
}
480
480
481
- predicate hasLocationInfo (
482
- string filepath , int startline , int startcolumn , int endline , int endcolumn
483
- ) {
484
- none ( ) // Overridden in subclass
485
- }
481
+ Location getLocation ( ) { none ( ) } // Overridden in subclass
486
482
}
487
483
488
484
private class OrdinaryCall extends DataFlowCall , MkOrdinaryCall {
@@ -498,11 +494,7 @@ private class OrdinaryCall extends DataFlowCall, MkOrdinaryCall {
498
494
499
495
override string toString ( ) { result = node .toString ( ) }
500
496
501
- override predicate hasLocationInfo (
502
- string filepath , int startline , int startcolumn , int endline , int endcolumn
503
- ) {
504
- node .hasLocationInfo ( filepath , startline , startcolumn , endline , endcolumn )
505
- }
497
+ override Location getLocation ( ) { result = node .getLocation ( ) }
506
498
}
507
499
508
500
private class PartialCall extends DataFlowCall , MkPartialCall {
@@ -521,11 +513,7 @@ private class PartialCall extends DataFlowCall, MkPartialCall {
521
513
522
514
override string toString ( ) { result = node .toString ( ) + " (as partial invocation)" }
523
515
524
- override predicate hasLocationInfo (
525
- string filepath , int startline , int startcolumn , int endline , int endcolumn
526
- ) {
527
- node .hasLocationInfo ( filepath , startline , startcolumn , endline , endcolumn )
528
- }
516
+ override Location getLocation ( ) { result = node .getLocation ( ) }
529
517
}
530
518
531
519
private class BoundCall extends DataFlowCall , MkBoundCall {
@@ -542,11 +530,7 @@ private class BoundCall extends DataFlowCall, MkBoundCall {
542
530
result = node .toString ( ) + " (as call with " + boundArgs + " bound arguments)"
543
531
}
544
532
545
- override predicate hasLocationInfo (
546
- string filepath , int startline , int startcolumn , int endline , int endcolumn
547
- ) {
548
- node .hasLocationInfo ( filepath , startline , startcolumn , endline , endcolumn )
549
- }
533
+ override Location getLocation ( ) { result = node .getLocation ( ) }
550
534
}
551
535
552
536
private class AccessorCall extends DataFlowCall , MkAccessorCall {
@@ -560,11 +544,7 @@ private class AccessorCall extends DataFlowCall, MkAccessorCall {
560
544
561
545
override string toString ( ) { result = ref .toString ( ) + " (as accessor call)" }
562
546
563
- override predicate hasLocationInfo (
564
- string filepath , int startline , int startcolumn , int endline , int endcolumn
565
- ) {
566
- ref .hasLocationInfo ( filepath , startline , startcolumn , endline , endcolumn )
567
- }
547
+ override Location getLocation ( ) { result = ref .getLocation ( ) }
568
548
}
569
549
570
550
class SummaryCall extends DataFlowCall , MkSummaryCall {
@@ -598,11 +578,7 @@ private class ImpliedLambdaCall extends DataFlowCall, MkImpliedLambdaCall {
598
578
599
579
override string toString ( ) { result = "[implied lambda call] " + function }
600
580
601
- override predicate hasLocationInfo (
602
- string filepath , int startline , int startcolumn , int endline , int endcolumn
603
- ) {
604
- function .getLocation ( ) .hasLocationInfo ( filepath , startline , startcolumn , endline , endcolumn )
605
- }
581
+ override Location getLocation ( ) { result = function .getLocation ( ) }
606
582
607
583
override DataFlowCallable getEnclosingCallable ( ) {
608
584
result .asSourceCallable ( ) = function .getEnclosingContainer ( )
0 commit comments