C# 클래스 Mages.Core.Ast.Statements.ReturnStatement

Represents a return statement.
상속: Mages.Core.Ast.Statements.BaseStatement, IStatement
파일 보기 프로젝트 열기: FlorianRappl/Mages

공개 메소드들

메소드 설명
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.

메소드 상세

Accept() 공개 메소드

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

ReturnStatement() 공개 메소드

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.
리턴 System

Validate() 공개 메소드

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