Delen via


ControlFlowRegionKind Enum

Definition

Defines kinds of regions that can be present in a ControlFlowGraph

public enum class ControlFlowRegionKind
public enum ControlFlowRegionKind
type ControlFlowRegionKind = 
Public Enum ControlFlowRegionKind
Inheritance
ControlFlowRegionKind

Fields

Name Value Description
Root 0

A root region encapsulating all BasicBlocks in a ControlFlowGraph

LocalLifetime 1

Region with the only purpose to represent the life-time of locals, intermediate results, and nested methods (local functions, lambdas). The lifetime of a local variable is the portion of program execution during which storage is guaranteed to be reserved for it. The lifetime of a nested method is the portion of program execution within which the method can be referenced. The lifetime of an intermediate result (capture) is the portion of program execution within which the result can be referenced.

Try 2

Region representing a try region. For example, Body

Filter 3

Region representing Filter

Catch 4

Region representing Handler

FilterAndHandler 5

Region representing a union of a Filter and the corresponding catch Catch regions. Doesn't contain any BasicBlocks directly.

TryAndCatch 6

Region representing a union of a Try and all corresponding catch Catch and FilterAndHandler regions. Doesn't contain any BasicBlocks directly.

Finally 7

Region representing Finally

TryAndFinally 8

Region representing a union of a Try and corresponding finally Finally region. Doesn't contain any BasicBlocks directly.

An ITryOperation that has a set of Catches and a Finally at the same time is mapped to a TryAndFinally region with TryAndCatch region inside its Try region.

StaticLocalInitializer 9

Region representing the initialization for a VB Static local variable. This region will only be executed the first time a function is called.

ErroneousBody 10

Region representing erroneous block of code that is unreachable from the entry block.

Applies to