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

Member predicate PatternExpr::getPatternMatch

Gets the pattern match that this pattern expression belongs to (transitively). For example, _, false, and (_, false) belong to the pattern match (_, false) => true in

(a,b) switch {
    (_, false) => true,
    _ => false
};
PatternMatch getPatternMatch()