| 54 | bool CanReturnErrors() const { return (flags_ & kCanReturnErrors) != 0; } |
| 55 | |
| 56 | NativeFunction(const std::string& base_name, const std::vector<std::string>& aliases, |
| 57 | const DataTypeVector& param_types, const DataTypePtr& ret_type, |
| 58 | const ResultNullableType& result_nullable_type, std::string pc_name, |
| 59 | int32_t flags = 0) |
| 60 | : signatures_(), |
| 61 | flags_(flags), |
| 62 | result_nullable_type_(result_nullable_type), |
| 63 | pc_name_(std::move(pc_name)) { |
| 64 | signatures_.emplace_back(base_name, param_types, ret_type); |
| 65 | for (auto& func_name : aliases) { |
| 66 | signatures_.emplace_back(func_name, param_types, ret_type); |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | private: |
| 71 | std::vector<FunctionSignature> signatures_; |
no test coverage detected