Skip to content

Commit 81a815c

Browse files
committed
Dataflow: Add StagePathNode.getState.
1 parent bdcc5e7 commit 81a815c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

shared/dataflow/codeql/dataflow/internal/DataFlowImpl.qll

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2539,6 +2539,9 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
25392539
class StagePathNodeImpl extends TStagePathNode {
25402540
abstract NodeEx getNodeEx();
25412541

2542+
/** Gets the `FlowState` of this node. */
2543+
abstract FlowState getState();
2544+
25422545
abstract string toString();
25432546

25442547
predicate isSource() { none() }
@@ -2559,6 +2562,8 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
25592562
override Location getLocation() { result.hasLocationInfo("", 0, 0, 0, 0) }
25602563

25612564
override NodeEx getNodeEx() { none() }
2565+
2566+
override FlowState getState() { none() }
25622567
}
25632568

25642569
class StagePathNodeSinkGrp extends StagePathNodeImpl, TStagePathNodeSinkGrp {
@@ -2567,6 +2572,8 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
25672572
override Location getLocation() { result.hasLocationInfo("", 0, 0, 0, 0) }
25682573

25692574
override NodeEx getNodeEx() { none() }
2575+
2576+
override FlowState getState() { none() }
25702577
}
25712578

25722579
class StagePathNodeMid extends StagePathNodeImpl, TStagePathNodeMid {
@@ -2585,6 +2592,8 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
25852592

25862593
override NodeEx getNodeEx() { result = node }
25872594

2595+
override FlowState getState() { result = state }
2596+
25882597
override string toString() {
25892598
result =
25902599
node.toString() + " " + cc.toString() + " " + t.toString() + " " + ap.toString()

0 commit comments

Comments
 (0)