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

Class ControlFlow::SuccessorTypes::MatchingSuccessor

A matching control flow successor.

For example, this program fragment:

switch (x) {
    case 0 :
        return 0;
    default :
        return 1;
}

has a control flow graph containing matching successors:

     switch
       |
       x
       |
     case 0
      / \
     /   \
    /     \
 match   no-match
   |        \
return 0   default
             |
          return 1

Import path

import csharp

Direct supertypes

Indirect supertypes

Predicates

getValue

Gets the Boolean value of this successor.

isMatch

Holds if this is a match successor.

toString

Gets a textual representation of successor type.