Added args and return type

This commit is contained in:
Rafał Grodziński
2025-07-15 10:23:32 +09:00
parent 5616036c17
commit 51115f5883
4 changed files with 30 additions and 24 deletions

View File

@@ -1,7 +1,7 @@
#include "StatementRawFunction.h"
StatementRawFunction::StatementRawFunction(string name, string constraints, string rawSource):
Statement(StatementKind::RAW_FUNCTION), name(name), constraints(constraints), rawSource(rawSource) { }
StatementRawFunction::StatementRawFunction(string name, string constraints, vector<pair<string, shared_ptr<ValueType>>> arguments, shared_ptr<ValueType> returnValueType, string rawSource):
Statement(StatementKind::RAW_FUNCTION), name(name), constraints(constraints), arguments(arguments), returnValueType(returnValueType), rawSource(rawSource) { }
string StatementRawFunction::getName() {
return name;
@@ -11,6 +11,14 @@ string StatementRawFunction::getConstraints() {
return constraints;
}
vector<pair<string, shared_ptr<ValueType>>> StatementRawFunction::getArguments() {
return arguments;
}
shared_ptr<ValueType> StatementRawFunction::getReturnValueType() {
return returnValueType;
}
string StatementRawFunction::getRawSource() {
return rawSource;
}