18 using System.Collections.Generic;
23 using ErrorManagement;
42 private List<FieldDeclaration> declarations;
53 get {
return this.declarations.Count; }
69 : base(type, location)
71 this.declarations = decls;
76 #region GetDeclarationElement()
85 return this.declarations[index];
100 return v.Visit(
this, o);
FieldDeclaration GetDeclarationElement(int index)
Gets the element stored in the specified index.
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.
int Count
Gets the number of declarations
FieldDeclarationSet(string type, List< FieldDeclaration > decls, Location location)
Constructor of FieldDeclarationSet
Encapsulates a declaration of a concrete type.
Location location
Location: Encapsulates in one object the line, column and filename
override Object Accept(Visitor v, Object o)
Accept method of a concrete visitor.
Encapsulates a set of field declarations.
Encapsulates a declaration of a concrete field.