| 128 | } |
| 129 | |
| 130 | TypeSpecKind CopyImpl(const TypeSpecKind& other) { |
| 131 | return absl::visit( |
| 132 | absl::Overload( |
| 133 | [](const std::unique_ptr<TypeSpec>& other) -> TypeSpecKind { |
| 134 | if (other == nullptr) { |
| 135 | return std::make_unique<TypeSpec>(); |
| 136 | } |
| 137 | return std::make_unique<TypeSpec>(*other); |
| 138 | }, |
| 139 | [](const auto& other) -> TypeSpecKind { |
| 140 | // Other variants define copy ctor. |
| 141 | return other; |
| 142 | }), |
| 143 | other); |
| 144 | } |
| 145 | |
| 146 | } // namespace |
| 147 |
no outgoing calls
no test coverage detected