The StaDyn Programming Language
Source code documentation of StaDyn, a hybrid static and dynamic typing language.
InterfaceDefinition.cs
Go to the documentation of this file.
1 // -------------------------------------------------------------------------- //
3 // Project rROTOR //
4 // -------------------------------------------------------------------------- //
5 // File: InterfaceDefinition.cs //
6 // Author: Cristina Gonzalez Muņoz - cristi.gm@gmail.com //
7 // Description: //
8 // Encapsulates a definition of a concrete interface. //
9 // Inheritance: IdDeclaration. //
10 // Implements Composite pattern [Composite]. //
11 // Implements Visitor pattern [Concrete Element]. //
12 // -------------------------------------------------------------------------- //
13 // Create date: 14-01-2007 //
14 // Modification date: 01-02-2007 //
16 
17 using System;
18 using System.Collections.Generic;
19 using System.Text;
20 
21 using Tools;
22 using TypeSystem;
23 
24 namespace AST
25 {
35  {
36  #region Constructor
37 
47  public InterfaceDefinition(SingleIdentifierExpression id, List<Modifier> mods, List<string> bases, List<Declaration> decls, ErrorManagement.Location location)
48  : base(id, mods, bases, decls, location)
49  {
50  }
51 
52  #endregion
53 
54  #region Accept()
55 
62  public override Object Accept(Visitor v, Object o)
63  {
64  return v.Visit(this, o);
65  }
66 
67  #endregion
68  }
69 }
Abstract class to define different visits over the abstract syntax tree.
Definition: Visitor.cs:29
Location Location
Definition: AstNode.cs:45
Encapsulates a definition of a concrete interface.
Encapsulates a identifier expression of our programming language.
override Object Accept(Visitor v, Object o)
Accept method of a concrete visitor.
Location location
Location: Encapsulates in one object the line, column and filename
Definition: AstNode.cs:39
Encapsulates a definition of a concrete class or interface.
InterfaceDefinition(SingleIdentifierExpression id, List< Modifier > mods, List< string > bases, List< Declaration > decls, ErrorManagement.Location location)
Constructor of ClassDefinition.