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

Class ControlFlow::BooleanSuccessor

A Boolean control flow successor.

For example, this program fragment:

if (x < 0)
    return 0;
else
    return 1;

has a control flow graph containing Boolean successors:

       if
       |
     x < 0
      / \
     /   \
    /     \
 true    false
   |        \
return 0   return 1

Import path

import csharp

Direct supertypes

Indirect supertypes

Predicates

getKind

Gets the condition kind of this conditional successor.

getValue

Gets the Boolean value of this successor.

toString

Gets a textual representation of this successor type.

Inherited predicates

getDual

Gets the dual of this conditional successor. That is, the conditional successor of the same kind but with the opposite value.

from ConditionalSuccessorImpl