| 405 | } |
| 406 | |
| 407 | bool InputType::Matches(const DataType& type) const { |
| 408 | switch (kind_) { |
| 409 | case InputType::EXACT_TYPE: |
| 410 | return type_->Equals(type); |
| 411 | case InputType::USE_TYPE_MATCHER: |
| 412 | return type_matcher_->Matches(type); |
| 413 | case InputType::ANY_TYPE: |
| 414 | return true; |
| 415 | } |
| 416 | return false; |
| 417 | } |
| 418 | |
| 419 | bool InputType::Matches(const Datum& value) const { |
| 420 | switch (value.kind()) { |