| 2174 | } |
| 2175 | |
| 2176 | optional_ref<const CustomMapValue> Value::AsCustomMap() const& { |
| 2177 | if (const auto* alternative = variant_.As<CustomMapValue>(); |
| 2178 | alternative != nullptr) { |
| 2179 | return *alternative; |
| 2180 | } |
| 2181 | return absl::nullopt; |
| 2182 | } |
| 2183 | |
| 2184 | absl::optional<CustomMapValue> Value::AsCustomMap() && { |
| 2185 | if (auto* alternative = variant_.As<CustomMapValue>(); |
no outgoing calls
no test coverage detected