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
Show file Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method 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 method

Returns yielded expression, null if none
public GetValue ( ) : AstNode
return AstNode

SetValue() public method

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 /// . ///
return void

ToSource() public method

public ToSource ( int depth ) : string
depth int
return string

Visit() public method

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
return void

Yield() public method

public Yield ( ) : Rhino
return Rhino

Yield() public method

public Yield ( int pos ) : Rhino
pos int
return Rhino

Yield() public method

public Yield ( int pos, int len ) : Rhino
pos int
len int
return Rhino

Yield() public method

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