Zen
A cross-platform functional programming language

TypeSpecStatement Class Reference

AST Node representing a statement that defines types within statement blocks. More...

#include <Ast.hpp>

Inheritance diagram for TypeSpecStatement:
Statement Node

List of all members.

Public Member Functions

 TypeSpecStatement (const Ast::TypeSpec &typeSpec)
 Default constructor.
const Ast::TypeSpecgetTypeSpec () 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.

Detailed Description

AST Node representing a statement that defines types within statement blocks.

Typically used when defining inner functions within functions.


Constructor & Destructor Documentation

TypeSpecStatement ( const Ast::TypeSpec typeSpec) [inline]

Default constructor.

Parameters:
typeSpecThe type being defined by this statement.

Member Function Documentation

const Ast::TypeSpec& getTypeSpec ( ) const [inline]

Returns a reference to the type being defined by this statement.

Returns:
The defined type.
void visit ( Statement::Visitor visitor) const [private, virtual]

Abstract visitor function.

Parameters:
visitorThe visitor object.

Implements Statement.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines