C# Class Mages.Core.Ast.Statements.ReturnStatement

Represents a return statement.
Inheritance: Mages.Core.Ast.Statements.BaseStatement, IStatement
显示文件 Open project: FlorianRappl/Mages

Public Methods

Method Description
Accept ( ITreeWalker visitor ) : void

Accepts the visitor by showing him around.

ReturnStatement ( IExpression expression, TextPosition start, TextPosition end ) : System

Creates a new return statement with the given payload.

Validate ( IValidationContext context ) : void

Validates the expression with the given context.

Method Details

Accept() public method

Accepts the visitor by showing him around.
public Accept ( ITreeWalker visitor ) : void
visitor ITreeWalker The visitor walking the tree.
return void

ReturnStatement() public method

Creates a new return statement with the given payload.
public ReturnStatement ( IExpression expression, TextPosition start, TextPosition end ) : System
expression IExpression The payload to transport.
start TextPosition The start position.
end TextPosition The end position.
return System

Validate() public method

Validates the expression with the given context.
public Validate ( IValidationContext context ) : void
context IValidationContext The validator to report errors to.
return void