C# Class Rhino.Ast.Yield

AST node for JavaScript 1.7 yield expression or statement. Node type is Rhino.Token.YIELD .

Yield : yield [no LineTerminator here] [non-paren Expression] ;
Inheritance: AstNode
Afficher le fichier Open project: hazzik/Rhino.Net Class Usage Examples

Méthodes publiques

Méthode Description
GetValue ( ) : AstNode

Returns yielded expression, null if none

SetValue ( AstNode expr ) : void

Sets yielded expression, and sets its parent to this node.

Sets yielded expression, and sets its parent to this node.

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

Visits this node, and if present, the yielded value.

Visits this node, and if present, the yielded value.

Yield ( ) : Rhino
Yield ( int pos ) : Rhino
Yield ( int pos, int len ) : Rhino
Yield ( int pos, int len, AstNode value ) : Rhino

Method Details

GetValue() public méthode

Returns yielded expression, null if none
public GetValue ( ) : AstNode
Résultat AstNode

SetValue() public méthode

Sets yielded expression, and sets its parent to this node.
Sets yielded expression, and sets its parent to this node.
public SetValue ( AstNode expr ) : void
expr AstNode /// the value to yield. Can be /// null /// . ///
Résultat void

ToSource() public méthode

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

Visit() public méthode

Visits this node, and if present, the yielded value.
Visits this node, and if present, the yielded value.
public Visit ( NodeVisitor v ) : void
v NodeVisitor
Résultat void

Yield() public méthode

public Yield ( ) : Rhino
Résultat Rhino

Yield() public méthode

public Yield ( int pos ) : Rhino
pos int
Résultat Rhino

Yield() public méthode

public Yield ( int pos, int len ) : Rhino
pos int
len int
Résultat Rhino

Yield() public méthode

public Yield ( int pos, int len, AstNode value ) : Rhino
pos int
len int
value AstNode
Résultat Rhino