C# Class Rhino.Ast.ReturnStatement

Return statement.
Return statement. Node type is Rhino.Token.RETURN .

ReturnStatement : return [no LineTerminator here] [Expression] ;
Inheritance: AstNode
显示文件 Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method Description
GetReturnValue ( ) : AstNode

Returns return value, null if return value is void

ReturnStatement ( ) : System.Text
ReturnStatement ( int pos ) : System.Text
ReturnStatement ( int pos, int len ) : System.Text
ReturnStatement ( int pos, int len, AstNode returnValue ) : System.Text
SetReturnValue ( AstNode returnValue ) : void

Sets return value expression, and sets its parent to this node.

Sets return value expression, and sets its parent to this node. Can be null .

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

Visits this node, then the return value if specified.

Visits this node, then the return value if specified.

Method Details

GetReturnValue() public method

Returns return value, null if return value is void
public GetReturnValue ( ) : AstNode
return AstNode

ReturnStatement() public method

public ReturnStatement ( ) : System.Text
return System.Text

ReturnStatement() public method

public ReturnStatement ( int pos ) : System.Text
pos int
return System.Text

ReturnStatement() public method

public ReturnStatement ( int pos, int len ) : System.Text
pos int
len int
return System.Text

ReturnStatement() public method

public ReturnStatement ( int pos, int len, AstNode returnValue ) : System.Text
pos int
len int
returnValue AstNode
return System.Text

SetReturnValue() public method

Sets return value expression, and sets its parent to this node.
Sets return value expression, and sets its parent to this node. Can be null .
public SetReturnValue ( AstNode returnValue ) : void
returnValue AstNode
return void

ToSource() public method

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

Visit() public method

Visits this node, then the return value if specified.
Visits this node, then the return value if specified.
public Visit ( NodeVisitor v ) : void
v NodeVisitor
return void