C# Class Rhino.Ast.WhileLoop

While statement.
While statement. Node type is Rhino.Token.WHILE .

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

Public Methods

Method Description
GetCondition ( ) : AstNode

Returns loop condition

SetCondition ( AstNode condition ) : void

Sets loop condition

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

Visits this node, the condition, then the body.

Visits this node, the condition, then the body.

WhileLoop ( ) : System.Text
WhileLoop ( int pos ) : System.Text
WhileLoop ( int pos, int len ) : System.Text

Method Details

GetCondition() public method

Returns loop condition
public GetCondition ( ) : AstNode
return AstNode

SetCondition() public method

Sets loop condition
/// } if condition is /// null ///
public SetCondition ( AstNode condition ) : void
condition AstNode
return void

ToSource() public method

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

Visit() public method

Visits this node, the condition, then the body.
Visits this node, the condition, then the body.
public Visit ( NodeVisitor v ) : void
v NodeVisitor
return void

WhileLoop() public method

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

WhileLoop() public method

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

WhileLoop() public method

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