Property | Type | Description | |
---|---|---|---|
eachPosition | int | ||
inPosition | int | ||
isForEach | bool | ||
iteratedObject | AstNode | ||
iterator | AstNode |
Method | Description | |
---|---|---|
ForInLoop ( ) : System.Text | ||
ForInLoop ( int pos ) : System.Text | ||
ForInLoop ( int pos, int len ) : System.Text | ||
GetEachPosition ( ) : int |
Returns position of "each" keyword
|
|
GetInPosition ( ) : int |
Returns position of "in" keyword
|
|
GetIteratedObject ( ) : AstNode |
Returns object being iterated over
|
|
GetIterator ( ) : AstNode |
Returns loop iterator expression
|
|
IsForEach ( ) : bool |
Returns whether the loop is a for-each loop
|
|
SetEachPosition ( int eachPosition ) : void |
Sets position of "each" keyword
|
|
SetInPosition ( int inPosition ) : void |
Sets position of "in" keyword
|
|
SetIsForEach ( bool isForEach ) : void |
Sets whether the loop is a for-each loop
|
|
SetIteratedObject ( AstNode @object ) : void |
Sets object being iterated over, and sets its parent to this node. Sets object being iterated over, and sets its parent to this node. |
|
SetIterator ( AstNode iterator ) : void |
Sets loop iterator expression: the part before the "in" keyword. Sets loop iterator expression: the part before the "in" keyword. Also sets its parent to this node. |
|
ToSource ( int depth ) : string | ||
Visit ( NodeVisitor v ) : void |
Visits this node, the iterator, the iterated object, and the body. Visits this node, the iterator, the iterated object, and the body. |
public ForInLoop ( int pos, int len ) : System.Text | ||
pos | int | |
len | int | |
return | System.Text |
public SetEachPosition ( int eachPosition ) : void | ||
eachPosition | int | /// position of "each" keyword, /// or -1 if not present. /// |
return | void |
public SetInPosition ( int inPosition ) : void | ||
inPosition | int | /// position of "in" keyword, /// or -1 if not present (e.g. in presence of a syntax error) /// |
return | void |
public SetIsForEach ( bool isForEach ) : void | ||
isForEach | bool | |
return | void |
public SetIteratedObject ( AstNode @object ) : void | ||
@object | AstNode | |
return | void |
public SetIterator ( AstNode iterator ) : void | ||
iterator | AstNode | |
return | void |