| 2145 | bool IsFieldPath() const { return std::holds_alternative<FieldPath>(impl_); } |
| 2146 | bool IsName() const { return std::holds_alternative<std::string>(impl_); } |
| 2147 | bool IsNested() const { |
| 2148 | if (IsName()) return false; |
| 2149 | if (IsFieldPath()) return std::get<FieldPath>(impl_).indices().size() > 1; |
| 2150 | return true; |
| 2151 | } |
| 2152 | |
| 2153 | /// \brief Return true if this ref is a name or a nested sequence of only names |
| 2154 | /// |
nothing calls this directly
no test coverage detected