Zen
A cross-platform functional programming language

FunctionDefImplExpr Class Reference

Concrete class for AST Node representing a function definition implementation. More...

#include <Ast.hpp>

Inheritance diagram for FunctionDefImplExpr:
Expr Node

List of all members.

Public Member Functions

 FunctionDefImplExpr (const QualifiedType &type, const Ast::ImplItem &item)
 Default constructor.
const Ast::ImplItemgetItem () const
 Returns the implementation item.

Private Member Functions

virtual void visit (Expr::Visitor &visitor) const
 Abstract visitor function.

Private Attributes

const Ast::ImplItem_item
 The implementation item.

Detailed Description

Concrete class for AST Node representing a function definition implementation.

For example:

        local x = function ()MyFunction() {...};

Here, MyFunction is a locally defined function and this node represents a call to MyFunction. The variable 'x' is now a functor.


Constructor & Destructor Documentation

FunctionDefImplExpr ( const QualifiedType type,
const Ast::ImplItem item 
) [inline]

Default constructor.

Parameters:
typeExpression type
itemThe implementation item.

Member Function Documentation

const Ast::ImplItem& getItem ( ) const [inline]

Returns the implementation item.

Returns:
The implementation item
void visit ( Expr::Visitor visitor) const [private, virtual]

Abstract visitor function.

Parameters:
visitorThe visitor object.

Implements Expr.


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