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

Predicate hasNodePath

Holds if there is a control-flow path from n1 to n2. n2 is either an expression node or an SSA definition node.

Import path

import semmle.code.csharp.dataflow.internal.DataFlowPrivate
predicate hasNodePath(ControlFlowReachabilityConfiguration conf, ExprNode n1, Node n2)