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

Represents a break statement.
Inheritance: Mages.Core.Ast.Statements.BaseStatement, IStatement
Exibir arquivo Open project: FlorianRappl/Mages

Public Methods

Method Description
Accept ( ITreeWalker visitor ) : void

Accepts the visitor by showing him around.

BreakStatement ( IExpression expression, TextPosition start, TextPosition end ) : Mages.Core.Ast.Expressions

Creates a new break 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

BreakStatement() public method

Creates a new break statement with the given payload.
public BreakStatement ( IExpression expression, TextPosition start, TextPosition end ) : Mages.Core.Ast.Expressions
expression IExpression The payload.
start TextPosition The start position.
end TextPosition The end position.
return Mages.Core.Ast.Expressions

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