Table of Contents

Interface IBlockVisitor<TInstruction>

Namespace
Echo.ControlFlow.Blocks
Assembly
Echo.ControlFlow.dll

Provides members for visiting blocks in a scoped block tree.

public interface IBlockVisitor<TInstruction> where TInstruction : notnull

Type Parameters

TInstruction

The type of instructions in the blocks.

Methods

VisitBasicBlock(BasicBlock<TInstruction>)

Visits a basic block.

void VisitBasicBlock(BasicBlock<TInstruction> block)

Parameters

block BasicBlock<TInstruction>

The block.

VisitExceptionHandlerBlock(ExceptionHandlerBlock<TInstruction>)

Visits an exception handler block.

void VisitExceptionHandlerBlock(ExceptionHandlerBlock<TInstruction> block)

Parameters

block ExceptionHandlerBlock<TInstruction>

The block.

VisitHandlerBlock(HandlerBlock<TInstruction>)

Visits a handler block inside an ExceptionHandlerBlock<TInstruction>.

void VisitHandlerBlock(HandlerBlock<TInstruction> block)

Parameters

block HandlerBlock<TInstruction>

The block.

VisitScopeBlock(ScopeBlock<TInstruction>)

Visits a scope block.

void VisitScopeBlock(ScopeBlock<TInstruction> block)

Parameters

block ScopeBlock<TInstruction>

The block.