| 1391 | } |
| 1392 | |
| 1393 | std::shared_ptr<Field> StructType::GetFieldByName(const std::string& name) const { |
| 1394 | int i = GetFieldIndex(name); |
| 1395 | return i == -1 ? nullptr : children_[i]; |
| 1396 | } |
| 1397 | |
| 1398 | int StructType::GetFieldIndex(const std::string& name) const { |
| 1399 | return LookupNameIndex(impl_->name_to_index_, name); |
no outgoing calls