Skip to content

Commit e6b6369

Browse files
committed
Ruby: Add stub.
1 parent 5ebd500 commit e6b6369

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowPrivate.qll

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,3 +1498,19 @@ class AdditionalJumpStep extends Unit {
14981498
*/
14991499
abstract predicate step(Node pred, Node succ);
15001500
}
1501+
1502+
/**
1503+
* Gets an additional term that is added to the `join` and `branch` computations to reflect
1504+
* an additional forward or backwards branching factor that is not taken into account
1505+
* when calculating the (virtual) dispatch cost.
1506+
*
1507+
* `call` is a call with an argument `arg` that is part of a path from a source to a sink, and
1508+
* `p` is the target parameter of a callable to which `call` may resolve.
1509+
*
1510+
* All these values are bound by the dataflow library, and if this predicate is implemented it
1511+
* should be specified with a bindingset annotation that binds all the columns.
1512+
*/
1513+
bindingset[call, p, arg]
1514+
int getAdditionalFlowIntoCallNodeTerm(DataFlowCall call, ParameterNode p, ArgumentNode arg) {
1515+
none()
1516+
}

0 commit comments

Comments
 (0)