C# Class Rhino.Ast.ArrayComprehensionLoop

AST node for a single 'for (foo in bar)' loop construct in a JavaScript 1.7 Array comprehension.
AST node for a single 'for (foo in bar)' loop construct in a JavaScript 1.7 Array comprehension. This node type is almost equivalent to a ForInLoop , except that it has no body statement. Node type is Rhino.Token.FOR .

Inheritance: ForInLoop
Show file Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method Description
ArrayComprehensionLoop ( ) : System
ArrayComprehensionLoop ( int pos ) : System
ArrayComprehensionLoop ( int pos, int len ) : System
GetBody ( ) : AstNode

Returns null for loop body

SetBody ( AstNode body ) : void

Throws an exception on attempts to set the loop body.

Throws an exception on attempts to set the loop body.

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

Visits the iterator expression and the iterated object expression.

Visits the iterator expression and the iterated object expression. There is no body-expression for this loop type.

Method Details

ArrayComprehensionLoop() public method

public ArrayComprehensionLoop ( ) : System
return System

ArrayComprehensionLoop() public method

public ArrayComprehensionLoop ( int pos ) : System
pos int
return System

ArrayComprehensionLoop() public method

public ArrayComprehensionLoop ( int pos, int len ) : System
pos int
len int
return System

GetBody() public method

Returns null for loop body
public GetBody ( ) : AstNode
return AstNode

SetBody() public method

Throws an exception on attempts to set the loop body.
Throws an exception on attempts to set the loop body.
System.NotSupportedException
public SetBody ( AstNode body ) : void
body AstNode loop body
return void

ToSource() public method

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

Visit() public method

Visits the iterator expression and the iterated object expression.
Visits the iterator expression and the iterated object expression. There is no body-expression for this loop type.
public Visit ( NodeVisitor v ) : void
v NodeVisitor
return void