| 2142 | } |
| 2143 | |
| 2144 | optional_ref<const ParsedJsonMapValue> Value::AsParsedJsonMap() const& { |
| 2145 | if (const auto* alternative = variant_.As<ParsedJsonMapValue>(); |
| 2146 | alternative != nullptr) { |
| 2147 | return *alternative; |
| 2148 | } |
| 2149 | return absl::nullopt; |
| 2150 | } |
| 2151 | |
| 2152 | absl::optional<ParsedJsonMapValue> Value::AsParsedJsonMap() && { |
| 2153 | if (auto* alternative = variant_.As<ParsedJsonMapValue>(); |
no outgoing calls
no test coverage detected