File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
go/ql/lib/semmle/go/dataflow/internal Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -390,3 +390,19 @@ class ContentApprox = Unit;
390390/** Gets an approximated value for content `c`. */
391391pragma [ inline]
392392ContentApprox 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+ }
You can’t perform that action at this time.
0 commit comments