Table of Contents

Class HighLevelLoopTransform

Namespace
ICSharpCode.Decompiler.IL.Transforms
Assembly
ICSharpCode.Decompiler.dll

If possible, transforms plain ILAst loops into while (condition), do-while and for-loops. For the invariants of the transforms CheckInvariant(ILPhase).

public class HighLevelLoopTransform : IILTransform
Inheritance
HighLevelLoopTransform
Implements
Inherited Members

Constructors

HighLevelLoopTransform()

public HighLevelLoopTransform()

Methods

MatchIncrement(ILInstruction, out ILVariable)

Returns true if the instruction is stloc v(add(ldloc v, arg)) or compound.assign(ldloca v, arg)

public static bool MatchIncrement(ILInstruction inst, out ILVariable variable)

Parameters

inst ILInstruction
variable ILVariable

Returns

bool

Run(ILFunction, ILTransformContext)

public void Run(ILFunction function, ILTransformContext context)

Parameters

function ILFunction
context ILTransformContext