@@ -2537,13 +2537,12 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
2537
2537
TStagePathNodeSinkGrp ( )
2538
2538
2539
2539
class StagePathNodeImpl extends TStagePathNode {
2540
+ abstract NodeEx getNodeEx ( ) ;
2541
+
2540
2542
abstract string toString ( ) ;
2541
2543
2542
2544
abstract Location getLocation ( ) ;
2543
2545
2544
- /** Gets the corresponding `Node`, if any. */
2545
- Node getNode ( ) { none ( ) }
2546
-
2547
2546
predicate isSource ( ) { none ( ) }
2548
2547
2549
2548
predicate isSink ( ) { none ( ) }
@@ -2557,12 +2556,16 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
2557
2556
override string toString ( ) { result = "<any source>" }
2558
2557
2559
2558
override Location getLocation ( ) { result .hasLocationInfo ( "" , 0 , 0 , 0 , 0 ) }
2559
+
2560
+ override NodeEx getNodeEx ( ) { none ( ) }
2560
2561
}
2561
2562
2562
2563
class StagePathNodeSinkGrp extends StagePathNodeImpl , TStagePathNodeSinkGrp {
2563
2564
override string toString ( ) { result = "<any sink>" }
2564
2565
2565
2566
override Location getLocation ( ) { result .hasLocationInfo ( "" , 0 , 0 , 0 , 0 ) }
2567
+
2568
+ override NodeEx getNodeEx ( ) { none ( ) }
2566
2569
}
2567
2570
2568
2571
class StagePathNodeMid extends StagePathNodeImpl , TStagePathNodeMid {
@@ -2579,15 +2582,15 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
2579
2582
this = TStagePathNodeMid ( node , state , cc , summaryCtx , argT , argAp , t , ap )
2580
2583
}
2581
2584
2585
+ override NodeEx getNodeEx ( ) { result = node }
2586
+
2582
2587
override string toString ( ) {
2583
2588
result =
2584
2589
node .toString ( ) + " " + cc .toString ( ) + " " + t .toString ( ) + " " + ap .toString ( )
2585
2590
}
2586
2591
2587
2592
override Location getLocation ( ) { result = node .getLocation ( ) }
2588
2593
2589
- override Node getNode ( ) { result = node .asNode ( ) }
2590
-
2591
2594
override predicate isSource ( ) {
2592
2595
sourceNode ( node , state ) and
2593
2596
( if hasSourceCallCtx ( ) then cc = ccSomeCall ( ) else cc = ccNone ( ) ) and
0 commit comments