Skip to content

Commit 067abac

Browse files
committed
Go: Add stub.
1 parent b667e01 commit 067abac

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

go/ql/lib/semmle/go/dataflow/internal/DataFlowPrivate.qll

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,3 +390,19 @@ class ContentApprox = Unit;
390390
/** Gets an approximated value for content `c`. */
391391
pragma[inline]
392392
ContentApprox getContentApprox(Content c) { any() }
393+
394+
/**
395+
* Gets an additional term that is added to the `join` and `branch` computations to reflect
396+
* an additional forward or backwards branching factor that is not taken into account
397+
* when calculating the (virtual) dispatch cost.
398+
*
399+
* `call` is a call with an argument `arg` that is part of a path from a source to a sink, and
400+
* `p` is the target parameter of a callable to which `call` may resolve.
401+
*
402+
* All these values are bound by the dataflow library, and if this predicate is implemented it
403+
* should be specified with a bindingset annotation that binds all the columns.
404+
*/
405+
bindingset[call, p, arg]
406+
int getAdditionalFlowIntoCallNodeTerm(DataFlowCall call, ParameterNode p, ArgumentNode arg) {
407+
none()
408+
}

0 commit comments

Comments
 (0)