| 2158 | } |
| 2159 | |
| 2160 | optional_ref<const CustomListValue> Value::AsCustomList() const& { |
| 2161 | if (const auto* alternative = variant_.As<CustomListValue>(); |
| 2162 | alternative != nullptr) { |
| 2163 | return *alternative; |
| 2164 | } |
| 2165 | return absl::nullopt; |
| 2166 | } |
| 2167 | |
| 2168 | absl::optional<CustomListValue> Value::AsCustomList() && { |
| 2169 | if (auto* alternative = variant_.As<CustomListValue>(); |
no outgoing calls
no test coverage detected