This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#ifndef PORYGONLANG_FUNCTIONSCRIPTTYPE_HPP
|
||||
#define PORYGONLANG_FUNCTIONSCRIPTTYPE_HPP
|
||||
|
||||
#include <utility>
|
||||
#include "ScriptType.hpp"
|
||||
|
||||
namespace Porygon {
|
||||
@@ -10,9 +11,8 @@ namespace Porygon {
|
||||
vector<shared_ptr<ScriptType>> _parameterTypes;
|
||||
size_t _option = 0;
|
||||
public:
|
||||
GenericFunctionOption(shared_ptr<ScriptType> returnType, vector<shared_ptr<ScriptType>> parameterTypes){
|
||||
_returnType = move(returnType);
|
||||
_parameterTypes = move(parameterTypes);
|
||||
GenericFunctionOption(shared_ptr<ScriptType> returnType, vector<shared_ptr<ScriptType>> parameterTypes)
|
||||
: _returnType(std::move(returnType)), _parameterTypes(std::move(parameterTypes)){
|
||||
}
|
||||
|
||||
virtual ~GenericFunctionOption() = default;
|
||||
@@ -93,8 +93,7 @@ namespace Porygon {
|
||||
public:
|
||||
ScriptFunctionOption(shared_ptr<ScriptType> returnType, vector<shared_ptr<ScriptType>> parameterTypes,
|
||||
vector<shared_ptr<Porygon::Binder::BoundVariableKey>> parameterKeys)
|
||||
: GenericFunctionOption(move(returnType), std::move(parameterTypes)) {
|
||||
_parameterKeys = move(parameterKeys);
|
||||
: GenericFunctionOption(move(returnType), std::move(parameterTypes)), _parameterKeys(move(parameterKeys)) {
|
||||
}
|
||||
|
||||
const vector<shared_ptr<Porygon::Binder::BoundVariableKey>> GetParameterKeys() const {
|
||||
|
||||
Reference in New Issue
Block a user