C# Class Rhino.Ast.DoLoop

Do statement.
Do statement. Node type is Rhino.Token.DO .

DoLoop: do Statement while ( Expression ) ;
Inheritance: Loop
Show file Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method Description
DoLoop ( ) : System.Text
DoLoop ( int pos ) : System.Text
DoLoop ( int pos, int len ) : System.Text
GetCondition ( ) : AstNode

Returns loop condition

GetWhilePosition ( ) : int

Returns source position of "while" keyword

SetCondition ( AstNode condition ) : void

Sets loop condition, and sets its parent to this node.

Sets loop condition, and sets its parent to this node.

SetWhilePosition ( int whilePosition ) : void

Sets source position of "while" keyword

ToSource ( int depth ) : string
Visit ( NodeVisitor v ) : void

Visits this node, the body, and then the while-expression.

Visits this node, the body, and then the while-expression.

Method Details

DoLoop() public method

public DoLoop ( ) : System.Text
return System.Text

DoLoop() public method

public DoLoop ( int pos ) : System.Text
pos int
return System.Text

DoLoop() public method

public DoLoop ( int pos, int len ) : System.Text
pos int
len int
return System.Text

GetCondition() public method

Returns loop condition
public GetCondition ( ) : AstNode
return AstNode

GetWhilePosition() public method

Returns source position of "while" keyword
public GetWhilePosition ( ) : int
return int

SetCondition() public method

Sets loop condition, and sets its parent to this node.
Sets loop condition, and sets its parent to this node.
if condition is null
public SetCondition ( AstNode condition ) : void
condition AstNode
return void

SetWhilePosition() public method

Sets source position of "while" keyword
public SetWhilePosition ( int whilePosition ) : void
whilePosition int
return void

ToSource() public method

public ToSource ( int depth ) : string
depth int
return string

Visit() public method

Visits this node, the body, and then the while-expression.
Visits this node, the body, and then the while-expression.
public Visit ( NodeVisitor v ) : void
v NodeVisitor
return void