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

Represents a "var ...;" 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.

Validate ( IValidationContext context ) : void

Validates the expression with the given context.

VarStatement ( IExpression assignment, TextPosition start, TextPosition end ) : Mages.Core.Ast.Expressions

Creates a new var statement.

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

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

VarStatement() public method

Creates a new var statement.
public VarStatement ( IExpression assignment, TextPosition start, TextPosition end ) : Mages.Core.Ast.Expressions
assignment IExpression
start TextPosition
end TextPosition
return Mages.Core.Ast.Expressions