18 using System.Collections.Generic;
21 using ErrorManagement;
47 private List<Declaration> namespaceBody;
58 get {
return this.identifier; }
66 get {
return this.namespaceBody.Count; }
83 this.identifier = name;
84 this.namespaceBody = declarations;
89 #region GetDeclarationElement()
98 return this.namespaceBody[index];
113 return v.Visit(
this, o);
Encapsulates a name expression of our programming language.
Encapsulates a namespace definition.
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 for all nodes that compounds the abstract syntax tree.
Declaration GetDeclarationElement(int index)
Gets the element stored in the specified index.
Encapsulates a declaration of a concrete type.
Location location
Location: Encapsulates in one object the line, column and filename
Namespace(IdentifierExpression name, List< Declaration > declarations, Location location)
Constructor of Namespace
override Object Accept(Visitor v, Object o)
Accept method of a concrete visitor.
IdentifierExpression Identifier
Gets the name of the namespace.
int NamespaceMembersCount
Gets the number of declaration in the namespace.