Make a lot of one-liner functions inline
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -17,19 +17,19 @@ namespace Porygon {
|
||||
|
||||
virtual ~GenericFunctionOption() = default;
|
||||
|
||||
const shared_ptr<ScriptType> GetReturnType() const {
|
||||
inline const shared_ptr<ScriptType> GetReturnType() const {
|
||||
return _returnType;
|
||||
}
|
||||
|
||||
void SetOption(size_t v){
|
||||
inline void SetOption(size_t v){
|
||||
_option = v;
|
||||
}
|
||||
|
||||
void SetReturnType(shared_ptr<ScriptType> t) {
|
||||
inline void SetReturnType(shared_ptr<ScriptType> t) {
|
||||
_returnType = move(t);
|
||||
}
|
||||
|
||||
const vector<shared_ptr<ScriptType>> GetParameterTypes() const {
|
||||
inline const vector<shared_ptr<ScriptType>> GetParameterTypes() const {
|
||||
return _parameterTypes;
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace Porygon {
|
||||
return true;
|
||||
}
|
||||
|
||||
const size_t GetOptionId() const{
|
||||
inline const size_t GetOptionId() const{
|
||||
return _option;
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace Porygon {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
GenericFunctionOption* GetFirstOption(){
|
||||
inline GenericFunctionOption* GetFirstOption(){
|
||||
return _options[0];
|
||||
}
|
||||
};
|
||||
@@ -96,11 +96,11 @@ namespace Porygon {
|
||||
: GenericFunctionOption(move(returnType), std::move(parameterTypes)), _parameterKeys(move(parameterKeys)) {
|
||||
}
|
||||
|
||||
const vector<shared_ptr<Porygon::Binder::BoundVariableKey>> GetParameterKeys() const {
|
||||
inline const vector<shared_ptr<Porygon::Binder::BoundVariableKey>> GetParameterKeys() const {
|
||||
return _parameterKeys;
|
||||
}
|
||||
|
||||
const bool IsScriptFunction() const final {
|
||||
inline const bool IsScriptFunction() const final {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user