| 341 | } |
| 342 | template <bool Flattened, typename T> |
| 343 | static auto DoGetOneOrNone(const T& root, const FieldRef& ref, |
| 344 | MemoryPool* pool = nullptr) { |
| 345 | if constexpr (Flattened) { |
| 346 | return ref.GetOneOrNoneFlattened(root, pool); |
| 347 | } else { |
| 348 | return ref.GetOneOrNone(root); |
| 349 | } |
| 350 | } |
| 351 | template <bool Flattened, typename T> |
| 352 | static auto DoGetAll(const T& root, const FieldRef& ref, MemoryPool* pool = nullptr) { |
| 353 | if constexpr (Flattened) { |
nothing calls this directly
no outgoing calls
no test coverage detected