C# Class Rhino.Ast.ReturnStatement

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

ReturnStatement : return [no LineTerminator here] [Expression] ;
Inheritance: AstNode
Afficher le fichier Open project: hazzik/Rhino.Net Class Usage Examples

Méthodes publiques

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

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

ReturnStatement() public méthode

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

ReturnStatement() public méthode

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

ReturnStatement() public méthode

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

ReturnStatement() public méthode

public ReturnStatement ( int pos, int len, AstNode returnValue ) : System.Text
pos int
len int
returnValue AstNode
Résultat System.Text

SetReturnValue() public méthode

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
Résultat void

ToSource() public méthode

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

Visit() public méthode

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
Résultat void