|
picceler
|
AST node for function definitions. More...
#include <ast.h>
Public Member Functions | |
| FunctionNode (Location loc, std::string name) | |
| const std::string & | name () const |
| const auto & | parameters () const |
| auto | body () const |
| void | addParameter (const std::string ¶mName, const std::string ¶mType) |
| void | addBodyStatement (std::unique_ptr< ASTNode > statement) |
| std::string | toString () const override |
| Public Member Functions inherited from picceler::ASTNode | |
| ASTNode () | |
| virtual | ~ASTNode ()=default |
| ASTNode (Location loc) | |
| ASTNode (const ASTNode &)=delete | |
| ASTNode & | operator= (const ASTNode &)=delete |
| ASTNode (ASTNode &&)=default | |
| ASTNode & | operator= (ASTNode &&)=default |
| Location | location () const |
AST node for function definitions.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
overridevirtual |
Implements picceler::ASTNode.