18 using System.Collections.Generic;
23 using ErrorManagement;
47 private Block assigns;
62 get {
return this.returnExpression; }
63 set { this.returnExpression = value; }
71 get {
return this.assigns; }
78 get {
return this.currentMethodType; }
79 set { this.currentMethodType= value; }
95 this.returnExpression = returnExp;
111 return v.Visit(
this, o);
Encapsulates a Return statement of our programming languages.
MethodType CurrentMethodType
The method where the return statement appears
Abstract class encapsulate a programming language expression.
Encapsulates a block of statements.
This class encapsulates a location in a specific file. Implements an Inmutable pattern. So it can be used in any context, that is his internal fields never change.
Abstract class represents a programming language statement.
Block Assigns
Gets the assignment statements.
ReturnStatement(Expression returnExp, Location location)
Constructor of ReturnStatement
Location location
Location: Encapsulates in one object the line, column and filename
Expression ReturnExpression
Gets the return expression.
Representa a method type.
override Object Accept(Visitor v, Object o)
Accept method of a concrete visitor.