![]() |
Zen
A cross-platform functional programming language
|
Concrete class for namespaces. More...
#include <Ast.hpp>
Public Member Functions | |
| Namespace (const AccessType::T &accessType, TypeSpec &parent, const z::string &name) | |
| Default constructor. | |
| Namespace * | hasNamespace (const z::string &name) |
| Checks whether namespace has a child namespace (Wrapper function around hasChild() ) | |
| Namespace & | addNamespace (Namespace &child) |
| Adds a child namespace. | |
Private Member Functions | |
| virtual void | visit (TypeSpec::Visitor &visitor) const |
| Visitor pattern implementation. | |
Concrete class for namespaces.
| Namespace | ( | const AccessType::T & | accessType, |
| TypeSpec & | parent, | ||
| const z::string & | name | ||
| ) | [inline] |
Default constructor.
| accessType | The AccessType for this function. |
| parent | The parent typefor this namespace |
| name | Name of the namespace |
Adds a child namespace.
| child | A reference to the child namespace AST node |
Checks whether namespace has a child namespace (Wrapper function around hasChild() )
| name | The namespace to check |
| void visit | ( | TypeSpec::Visitor & | visitor | ) | const [private, virtual] |