Zen
A cross-platform functional programming language
|
AST Node for a function implementation. More...
#include <Ast.hpp>
Public Member Functions | |
FunctionImplItem (const int &idx, const Ast::FunctionDef &fdef, const Ast::FunctionBlock &block) | |
Default constructor. | |
z::string | getUniqueName (const z::string &sep) const |
Returns the unique name for this implementation item. | |
const Ast::FunctionBlock & | getBlock () const |
Returns the FunctionBlock for this implementation item. | |
Private Member Functions | |
virtual void | visit (ImplItem::Visitor &visitor) const |
Abstract visitor function. | |
virtual const Ast::FunctionImplItem & | getFunctionImplItem () const |
Returns a reference to this if this is a FunctionImplItem, else throws exception. | |
Private Attributes | |
const Ast::FunctionBlock & | _block |
The function block. |
AST Node for a function implementation.
FunctionImplItem | ( | const int & | idx, |
const Ast::FunctionDef & | fdef, | ||
const Ast::FunctionBlock & | block | ||
) | [inline] |
Default constructor.
idx | The index of this item in the list of impl items. |
fdef | The function definition implemented in this item. |
block | The function block for this item |
const Ast::FunctionBlock& getBlock | ( | ) | const [inline] |
Returns the FunctionBlock for this implementation item.
virtual const Ast::FunctionImplItem& getFunctionImplItem | ( | ) | const [inline, private, virtual] |
Returns a reference to this if this is a FunctionImplItem, else throws exception.
Implements ImplItem.
Returns the unique name for this implementation item.
sep | The separator |
void visit | ( | ImplItem::Visitor & | visitor | ) | const [private, virtual] |