picceler
Loading...
Searching...
No Matches
picceler::CallNode Class Reference

AST node for function calls. More...

#include <ast.h>

Inheritance diagram for picceler::CallNode:
picceler::ASTNode

Public Member Functions

 CallNode (Location loc, std::string callee)
const std::string & callee () const
auto arguments () const
void addArgument (std::unique_ptr< ASTNode > arg)
std::string toString () const override
Public Member Functions inherited from picceler::ASTNode
 ASTNode ()
virtual ~ASTNode ()=default
 ASTNode (Location loc)
 ASTNode (const ASTNode &)=delete
ASTNodeoperator= (const ASTNode &)=delete
 ASTNode (ASTNode &&)=default
ASTNodeoperator= (ASTNode &&)=default
Location location () const

Detailed Description

AST node for function calls.

Constructor & Destructor Documentation

◆ CallNode()

picceler::CallNode::CallNode ( Location loc,
std::string callee )
inline

Member Function Documentation

◆ addArgument()

void picceler::CallNode::addArgument ( std::unique_ptr< ASTNode > arg)
inline

◆ arguments()

auto picceler::CallNode::arguments ( ) const
inline

◆ callee()

const std::string & picceler::CallNode::callee ( ) const
inline

◆ toString()

std::string picceler::CallNode::toString ( ) const
overridevirtual

Implements picceler::ASTNode.


The documentation for this class was generated from the following files:
  • /__w/picceler/picceler/include/ast.h
  • /__w/picceler/picceler/src/ast.cpp