| 155 | }; |
| 156 | |
| 157 | inline FunctionNode::FunctionNode(const std::string& name, const NodeVector& children, |
| 158 | DataTypePtr return_type) |
| 159 | : Node(return_type), children_(children) { |
| 160 | DataTypeVector param_types; |
| 161 | for (auto& child : children) { |
| 162 | param_types.push_back(child->return_type()); |
| 163 | } |
| 164 | |
| 165 | descriptor_ = FuncDescriptorPtr(new FuncDescriptor(name, param_types, return_type)); |
| 166 | } |
| 167 | |
| 168 | /// \brief Node in the expression tree, representing an if-else expression. |
| 169 | class GANDIVA_EXPORT IfNode : public Node { |
nothing calls this directly
no test coverage detected