Zen
A cross-platform functional programming language
|
Concrete class for AST Node representing a function definition implementation. More...
#include <Ast.hpp>
Public Member Functions | |
FunctionDefImplExpr (const QualifiedType &type, const Ast::ImplItem &item) | |
Default constructor. | |
const Ast::ImplItem & | getItem () 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. |
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.
FunctionDefImplExpr | ( | const QualifiedType & | type, |
const Ast::ImplItem & | item | ||
) | [inline] |
Default constructor.
type | Expression type |
item | The implementation item. |
const Ast::ImplItem& getItem | ( | ) | const [inline] |
Returns the implementation item.
void visit | ( | Expr::Visitor & | visitor | ) | const [private, virtual] |