18 using System.Collections.Generic;
24 using ErrorManagement;
43 private List<Modifier> modifiersInfo;
48 private string fieldType;
64 get {
return this.modifiersInfo; }
72 get {
return this.fieldType; }
80 get {
return this.symbol; }
81 set { this.symbol = value; }
98 : base(id, -1, null, location)
100 this.modifiersInfo = modifiers;
101 this.fieldType = type;
116 return v.Visit(
this, o);
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.
string TypeInfo
Gets the field type string
FieldDeclaration(SingleIdentifierExpression id, string type, List< Modifier > modifiers, Location location)
Constructor of FieldDeclaration.
This class represents a symbol associated with its identifier.
Encapsulates a identifier expression of our programming language.
override Object Accept(Visitor v, Object o)
Accept method of a concrete visitor.
Encapsulates a declaration.
Location location
Location: Encapsulates in one object the line, column and filename
Encapsulates a declaration of a concrete field.
Symbol FieldSymbol
Gets or sets the field symbol
List< Modifier > ModifiersInfo
Gets the modifiers information used to obtain its type