CodeQL library for C#
codeql/csharp-all 0.8.3 (changelog, source)
Search

Module DispatchImpl

Import path

import semmle.code.csharp.dataflow.internal.DataFlowDispatch

Predicates

mayBenefitFromCallContext

Holds if the set of viable implementations that can be called by call might be improved by knowing the call context. This is the case if the call is a delegate call, or if the qualifier accesses a parameter of the enclosing callable c (including the implicit this parameter).

viableImplInCallContext

Gets a viable dispatch target of call in the context ctx. This is restricted to those calls for which a context might make a difference.