Added args and return type
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user