![]() |
Zen
A cross-platform functional programming language
|
Concrete class for AST Node representing a function implementation. More...
#include <Ast.hpp>
Public Member Functions | |
| FunctionImplExpr (const QualifiedType &type, const Ast::FunctionImplItem &item) | |
| Default constructor. | |
| const Ast::FunctionImplItem & | getItem () const |
| Returns the implementation item. | |
Private Member Functions | |
| virtual void | visit (Expr::Visitor &visitor) const |
| Abstract visitor function. | |
Private Attributes | |
| const Ast::FunctionImplItem & | _item |
| The implementation item. | |
Concrete class for AST Node representing a function implementation.
For example:
local x = MyFunction {...};
Here, MyFunction is a function and MyFunction{...} is an inline function implementation. The variable x is now a functor.
| FunctionImplExpr | ( | const QualifiedType & | type, |
| const Ast::FunctionImplItem & | item | ||
| ) | [inline] |
Default constructor.
| type | Expression type |
| item | The implementation item. |
| const Ast::FunctionImplItem& getItem | ( | ) | const [inline] |
Returns the implementation item.
| void visit | ( | Expr::Visitor & | visitor | ) | const [private, virtual] |