C# 클래스 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 .

상속: ForInLoop
파일 보기 프로젝트 열기: hazzik/Rhino.Net 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

ArrayComprehensionLoop() 공개 메소드

public ArrayComprehensionLoop ( ) : System
리턴 System

ArrayComprehensionLoop() 공개 메소드

public ArrayComprehensionLoop ( int pos ) : System
pos int
리턴 System

ArrayComprehensionLoop() 공개 메소드

public ArrayComprehensionLoop ( int pos, int len ) : System
pos int
len int
리턴 System

GetBody() 공개 메소드

Returns null for loop body
public GetBody ( ) : AstNode
리턴 AstNode

SetBody() 공개 메소드

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
리턴 void

ToSource() 공개 메소드

public ToSource ( int depth ) : string
depth int
리턴 string

Visit() 공개 메소드

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
리턴 void