C# Class GameMaker.Ast.GotoRemoval

Show file Open project: WarlockD/GMdsam

Public Methods

Method Description
GotoRemoval ( ) : System
RemoveGotos ( ILBlock method ) : void
RemoveRedundantCode ( ILBlock method ) : void

Private Methods

Method Description
Enter ( ILNode node, HashSet visitedNodes ) : ILNode

Get the first expression to be excecuted if the instruction pointer is at the start of the given node. Try blocks may not be entered in any way. If possible, the try block is returned as the node to be executed.

Exit ( ILNode node, HashSet visitedNodes ) : ILNode

Get the first expression to be excecuted if the instruction pointer is at the end of the given node

GetParents ( ILNode node ) : IEnumerable
TrySimplifyGoto ( ILExpression gotoExpr ) : bool

Method Details

GotoRemoval() public method

public GotoRemoval ( ) : System
return System

RemoveGotos() public method

public RemoveGotos ( ILBlock method ) : void
method ILBlock
return void

RemoveRedundantCode() public static method

public static RemoveRedundantCode ( ILBlock method ) : void
method ILBlock
return void