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
Afficher le fichier Open project: hazzik/Rhino.Net Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public ArrayComprehensionLoop ( ) : System
Résultat System

ArrayComprehensionLoop() public méthode

public ArrayComprehensionLoop ( int pos ) : System
pos int
Résultat System

ArrayComprehensionLoop() public méthode

public ArrayComprehensionLoop ( int pos, int len ) : System
pos int
len int
Résultat System

GetBody() public méthode

Returns null for loop body
public GetBody ( ) : AstNode
Résultat AstNode

SetBody() public méthode

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
Résultat void

ToSource() public méthode

public ToSource ( int depth ) : string
depth int
Résultat string

Visit() public méthode

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
Résultat void