Zen
A cross-platform functional programming language
|
Base node class typespecs that do not have a parent type. More...
#include <Ast.hpp>
Protected Member Functions | |
RootTypeSpec (const AccessType::T &accessType, const z::string &name) | |
The constructor for the type without an initial parent. | |
Private Member Functions | |
virtual z::string | getFullName (const z::string &sep) const |
Returns the full name of the type, which is the same as short name for root type. |
Base node class typespecs that do not have a parent type.
There is only one concrete class derived from this, Unit. All other TypeSpec-derived classes must have a parent TypeSpec.
RootTypeSpec | ( | const AccessType::T & | accessType, |
const z::string & | name | ||
) | [inline, protected] |
The constructor for the type without an initial parent.
The parent member must be set after instantion , but before use, using setParent()
accessType | Specifies the AccessType for this type, for example, whether it is a public or a private type. |
name | The name of the type. |