Nitro.BreakPoint Class Reference

Detailed Description

Represents a break or continue statement (one which breaks out of a loop, or skips the remaining code within a loop).

Public Member Functions

 BreakPoint (Label continuePoint, Label end)
 Creates a new break/continue point with the given loop information. More...
 
void Break (NitroIL into)
 Emits a break - a jump to the end of the loop. More...
 
void Continue (NitroIL into)
 Emits a continue - a jump to the start of the loop. More...
 

Public Attributes

Label End
 The location of the end of the loop. More...
 
Label ContinuePoint
 The location of the start of the loop. More...
 

Constructor & Destructor Documentation

Nitro.BreakPoint.BreakPoint ( Label  continuePoint,
Label  end 
)
inline

Creates a new break/continue point with the given loop information.

Parameters
continuePointThe location of the start of the loop.
endThe location of the end of the loop.

Member Function Documentation

void Nitro.BreakPoint.Break ( NitroIL  into)
inline

Emits a break - a jump to the end of the loop.

Parameters
intoThe IL code to emit the instruction into.
void Nitro.BreakPoint.Continue ( NitroIL  into)
inline

Emits a continue - a jump to the start of the loop.

Parameters
intoThe IL code to emit the instruction into.

Member Data Documentation

Label Nitro.BreakPoint.ContinuePoint

The location of the start of the loop.

Label Nitro.BreakPoint.End

The location of the end of the loop.