Zen
A cross-platform functional programming language
|
AST Node representing a statement that defines types within statement blocks. More...
#include <Ast.hpp>
Public Member Functions | |
TypeSpecStatement (const Ast::TypeSpec &typeSpec) | |
Default constructor. | |
const Ast::TypeSpec & | getTypeSpec () const |
Returns a reference to the type being defined by this statement. | |
Private Member Functions | |
virtual void | visit (Statement::Visitor &visitor) const |
Abstract visitor function. | |
Private Attributes | |
const Ast::TypeSpec & | _typeSpec |
The defined type. |
AST Node representing a statement that defines types within statement blocks.
Typically used when defining inner functions within functions.
TypeSpecStatement | ( | const Ast::TypeSpec & | typeSpec | ) | [inline] |
Default constructor.
typeSpec | The type being defined by this statement. |
const Ast::TypeSpec& getTypeSpec | ( | ) | const [inline] |
Returns a reference to the type being defined by this statement.
void visit | ( | Statement::Visitor & | visitor | ) | const [private, virtual] |