C# Class Rhino.Ast.ForInLoop

For-in or for-each-in statement.
For-in or for-each-in statement. Node type is Rhino.Token.FOR .

for [each] ( LeftHandSideExpression in Expression ) Statement
for [each] ( var VariableDeclarationNoIn in Expression ) Statement
Inheritance: Loop
Afficher le fichier Open project: hazzik/Rhino.Net Class Usage Examples

Protected Properties

Свойство Type Description
eachPosition int
inPosition int
isForEach bool
iteratedObject AstNode
iterator AstNode

Méthodes publiques

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

Method Details

ForInLoop() public méthode

public ForInLoop ( ) : System.Text
Résultat System.Text

ForInLoop() public méthode

public ForInLoop ( int pos ) : System.Text
pos int
Résultat System.Text

ForInLoop() public méthode

public ForInLoop ( int pos, int len ) : System.Text
pos int
len int
Résultat System.Text

GetEachPosition() public méthode

Returns position of "each" keyword
public GetEachPosition ( ) : int
Résultat int

GetInPosition() public méthode

Returns position of "in" keyword
public GetInPosition ( ) : int
Résultat int

GetIteratedObject() public méthode

Returns object being iterated over
public GetIteratedObject ( ) : AstNode
Résultat AstNode

GetIterator() public méthode

Returns loop iterator expression
public GetIterator ( ) : AstNode
Résultat AstNode

IsForEach() public méthode

Returns whether the loop is a for-each loop
public IsForEach ( ) : bool
Résultat bool

SetEachPosition() public méthode

Sets position of "each" keyword
public SetEachPosition ( int eachPosition ) : void
eachPosition int /// position of "each" keyword, /// or -1 if not present. ///
Résultat void

SetInPosition() public méthode

Sets position of "in" keyword
public SetInPosition ( int inPosition ) : void
inPosition int /// position of "in" keyword, /// or -1 if not present (e.g. in presence of a syntax error) ///
Résultat void

SetIsForEach() public méthode

Sets whether the loop is a for-each loop
public SetIsForEach ( bool isForEach ) : void
isForEach bool
Résultat void

SetIteratedObject() public méthode

Sets object being iterated over, and sets its parent to this node.
Sets object being iterated over, and sets its parent to this node.
/// if /// object /// is /// null ///
public SetIteratedObject ( AstNode @object ) : void
@object AstNode
Résultat void

SetIterator() public méthode

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.
/// if /// iterator /// is /// null ///
public SetIterator ( AstNode iterator ) : void
iterator AstNode
Résultat void

ToSource() public méthode

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

Visit() public méthode

Visits this node, the iterator, the iterated object, and the body.
Visits this node, the iterator, the iterated object, and the body.
public Visit ( NodeVisitor v ) : void
v NodeVisitor
Résultat void

Property Details

eachPosition protected_oe property

protected int eachPosition
Résultat int

inPosition protected_oe property

protected int inPosition
Résultat int

isForEach protected_oe property

protected bool isForEach
Résultat bool

iteratedObject protected_oe property

protected AstNode iteratedObject
Résultat AstNode

iterator protected_oe property

protected AstNode iterator
Résultat AstNode