CodeQL library for C#
codeql/csharp-all 1.0.3-dev (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.