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

Class ControlFlow::SuccessorTypes::GotoSuccessor

A goto control flow successor.

Example:

int M(int x)
{
    while (true)
    {
        if (x++ > 10)
            goto Return;
    }
    Return: return x;
}

The node Return: return x is a goto label successor of the node goto Return;.

Import path

import csharp

Direct supertypes

Indirect supertypes

Predicates

getLabel

Gets the goto label.

toString

Gets a textual representation of successor type.