Skip to content

Commit 29a2055

Browse files
committed
Ruby: use MkUse/MkDef for successors, use/def for predecessors
1 parent fdd975b commit 29a2055

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ruby/ql/lib/codeql/ruby/ApiGraphs.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -813,20 +813,20 @@ module API {
813813
useRoot(lbl, ref)
814814
or
815815
exists(DataFlow::Node node, DataFlow::Node src |
816-
pred = MkUse(src) and
816+
use(pred, src) and
817817
trackUseNode(src).flowsTo(node) and
818818
useStep(lbl, node, ref)
819819
)
820820
or
821821
exists(DataFlow::Node callback |
822-
pred = MkDef(callback) and
822+
def(pred, callback) and
823823
parameterStep(lbl, trackDefNode(callback), ref)
824824
)
825825
)
826826
or
827827
exists(DataFlow::Node predNode, DataFlow::Node succNode |
828828
def(pred, predNode) and
829-
def(succ, succNode) and
829+
succ = MkDef(succNode) and
830830
defStep(lbl, trackDefNode(predNode), succNode)
831831
)
832832
or
@@ -844,7 +844,7 @@ module API {
844844
exists(DataFlow::CallNode call |
845845
// from receiver to method call node
846846
exists(DataFlow::Node receiver |
847-
pred = MkUse(receiver) and
847+
use(pred, receiver) and
848848
useNodeReachesReceiver(receiver, call) and
849849
lbl = Label::method(call.getMethodName()) and
850850
succ = MkMethodAccessNode(call)

0 commit comments

Comments
 (0)