Files
bits-runner-builder/src/Parser/Statement/StatementFunction.h
2025-07-02 16:51:51 +09:00

18 lines
581 B
C++

#include "Parser/Statement/Statement.h"
class StatementBlock;
class StatementFunction: public Statement {
private:
string name;
vector<pair<string, ValueType>> arguments;
ValueType returnValueType;
shared_ptr<StatementBlock> statementBlock;
public:
StatementFunction(string name, vector<pair<string, ValueType>> arguments, ValueType returnValueType, shared_ptr<StatementBlock> statementBlock);
string getName();
vector<pair<string, ValueType>> getArguments();
ValueType getReturnValueType();
shared_ptr<StatementBlock> getStatementBlock();
};