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