| 38 | class ExprValidator : public NodeVisitor { |
| 39 | public: |
| 40 | explicit ExprValidator(LLVMTypes* types, SchemaPtr schema, |
| 41 | std::shared_ptr<FunctionRegistry> registry) |
| 42 | : types_(types), schema_(schema), registry_(std::move(registry)) { |
| 43 | for (auto& field : schema_->fields()) { |
| 44 | field_map_[field->name()] = field; |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | /// \brief Validates the root node |
| 49 | /// of an expression. |