|
The StaDyn Programming Language
Source code documentation of StaDyn, a hybrid static and dynamic typing language.
|
Encapsulates a namespace definition. More...
Public Member Functions | |
| Namespace (IdentifierExpression name, List< Declaration > declarations, Location location) | |
| Constructor of Namespace More... | |
| Declaration | GetDeclarationElement (int index) |
| Gets the element stored in the specified index. More... | |
| override Object | Accept (Visitor v, Object o) |
| Accept method of a concrete visitor. More... | |
Public Member Functions inherited from AST.AstNode | |
| override bool | Equals (object obj) |
| AntLR compares Nodes with the class name. This is not correct for our purposes. More... | |
| override int | GetHashCode () |
| virtual object | AcceptOperation (AstOperation op, object arg) |
| Dispatches expressions to the operation passed as argument. It provokes the execution of op.AcceptOperation(AstNode) with the parameter resolved polymorfically More... | |
Properties | |
| IdentifierExpression | Identifier [get] |
| Gets the name of the namespace. More... | |
| int | NamespaceMembersCount [get] |
| Gets the number of declaration in the namespace. More... | |
Properties inherited from AST.AstNode | |
| Location | Location [get] |
Additional Inherited Members | |
Protected Member Functions inherited from AST.AstNode | |
| AstNode (Location location) | |
| Protected constructor of NodeAst More... | |
Protected Attributes inherited from AST.AstNode | |
| Location | location |
| Location: Encapsulates in one object the line, column and filename More... | |
Encapsulates a namespace definition.
Inheritance: AstNode. Implements Composite pattern [Composite]. Implements Visitor pattern [Concrete Element].
Definition at line 35 of file Namespace.cs.
| AST.Namespace.Namespace | ( | IdentifierExpression | name, |
| List< Declaration > | declarations, | ||
| Location | location | ||
| ) |
Constructor of Namespace
| name | Name of the namespace definition. |
| declarations | Members of the namespace definition. |
| fileName | File name. |
| lineNumber | Line number. |
| columnNumber | Column number. |
Definition at line 81 of file Namespace.cs.
|
virtual |
Accept method of a concrete visitor.
| v | Concrete visitor |
| o | Optional information to use in the visit. |
Implements AST.AstNode.
Definition at line 111 of file Namespace.cs.
| Declaration AST.Namespace.GetDeclarationElement | ( | int | index | ) |
Gets the element stored in the specified index.
| index | Index. |
Definition at line 96 of file Namespace.cs.
|
get |
Gets the name of the namespace.
Definition at line 57 of file Namespace.cs.
|
get |
Gets the number of declaration in the namespace.
Definition at line 65 of file Namespace.cs.