File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
shared/dataflow/codeql/dataflow/internal Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -2570,6 +2570,38 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
2570
2570
2571
2571
abstract StagePathNodeImpl getASuccessorImpl ( string label ) ;
2572
2572
2573
+ private StagePathNodeImpl getASuccessorIfHidden ( string label ) {
2574
+ this .isHidden ( ) and
2575
+ result = this .getASuccessorImpl ( label )
2576
+ }
2577
+
2578
+ private StagePathNodeImpl getASuccessorFromNonHidden ( string label ) {
2579
+ result = this .getASuccessorImpl ( label ) and
2580
+ not this .isHidden ( )
2581
+ or
2582
+ exists ( string l1 , string l2 |
2583
+ result = this .getASuccessorFromNonHidden ( l1 ) .getASuccessorIfHidden ( l2 ) and
2584
+ label = mergeLabels ( l1 , l2 )
2585
+ )
2586
+ }
2587
+
2588
+ final StagePathNodeImpl getANonHiddenSuccessor ( string label ) {
2589
+ result = this .getASuccessorFromNonHidden ( label ) and not result .isHidden ( )
2590
+ }
2591
+
2592
+ predicate isHidden ( ) {
2593
+ not Config:: includeHiddenNodes ( ) and
2594
+ (
2595
+ hiddenNode ( this .getNodeEx ( ) .asNode ( ) ) and
2596
+ not this .isSource ( ) and
2597
+ not this instanceof StagePathNodeSink
2598
+ or
2599
+ this .getNodeEx ( ) instanceof TNodeImplicitRead
2600
+ or
2601
+ hiddenNode ( this .getNodeEx ( ) .asParamReturnNode ( ) )
2602
+ )
2603
+ }
2604
+
2573
2605
/** Gets a textual representation of this element. */
2574
2606
abstract string toString ( ) ;
2575
2607
You can’t perform that action at this time.
0 commit comments