| 1363 | } |
| 1364 | |
| 1365 | const MutableMapValue* absl_nullable AsMutableMapValue(const Value& value) { |
| 1366 | if (auto custom_map_value = value.AsCustomMap(); custom_map_value) { |
| 1367 | NativeTypeId native_type_id = custom_map_value->GetTypeId(); |
| 1368 | if (native_type_id == NativeTypeId::For<MutableMapValue>()) { |
| 1369 | return cel::internal::down_cast<const MutableMapValue*>( |
| 1370 | custom_map_value->interface()); |
| 1371 | } |
| 1372 | if (native_type_id == NativeTypeId::For<MutableCompatMapValue>()) { |
| 1373 | return cel::internal::down_cast<const MutableCompatMapValue*>( |
| 1374 | custom_map_value->interface()); |
| 1375 | } |
| 1376 | } |
| 1377 | return nullptr; |
| 1378 | } |
| 1379 | |
| 1380 | const MutableMapValue* absl_nullable AsMutableMapValue(const MapValue& value) { |
| 1381 | if (auto custom_map_value = value.AsCustom(); custom_map_value) { |
nothing calls this directly
no test coverage detected